You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@etch.apache.org by ve...@apache.org on 2012/06/01 13:23:36 UTC

svn commit: r1345067 - in /incubator/etch/trunk/binding-cpp/runtime/include/serialization: EtchAsyncMode.h EtchDirection.h EtchLevel.h

Author: veithm
Date: Fri Jun  1 11:23:35 2012
New Revision: 1345067

URL: http://svn.apache.org/viewvc?rev=1345067&view=rev
Log:
ETCH-194 Definition of Etch Enumerations

EtchAsyncMode
EtchLevel
EtchDirection

Change-Id: Ie22581111471b5ff0521217d8c90ddd20960855a

Added:
    incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchAsyncMode.h
    incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchDirection.h
    incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchLevel.h

Added: incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchAsyncMode.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchAsyncMode.h?rev=1345067&view=auto
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchAsyncMode.h (added)
+++ incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchAsyncMode.h Fri Jun  1 11:23:35 2012
@@ -0,0 +1,36 @@
+/* $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version
+ * 2.0 (the "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+#ifndef __ETCHASYNCMODE_H__
+#define __ETCHASYNCMODE_H__
+#include "common/EtchConfig.h"
+
+typedef capu::uint32_t EtchAsyncMode;
+
+enum {
+  /** synchronous mode */
+  NONE,
+  /** the operation is queued to a thread pool for execution */
+  QUEUED,
+  /** the operation is executed by a newly allocated thread */
+  FREE
+};
+
+#endif /* ETCHASYNCMODE_H */
+

Added: incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchDirection.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchDirection.h?rev=1345067&view=auto
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchDirection.h (added)
+++ incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchDirection.h Fri Jun  1 11:23:35 2012
@@ -0,0 +1,37 @@
+/* $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version
+ * 2.0 (the "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __ETCHDIRECTION_H__
+#define __ETCHDIRECTION_H__
+
+#include "common/EtchConfig.h"
+
+typedef capu::uint32_t EtchDirection;
+
+enum {
+  /** Message is both toward client and toward server. */
+  BOTH,
+
+  /** Message is toward server. */
+  SERVER,
+
+  /** Message is toward client. */
+  CLIENT
+};
+#endif /* ETCHDIRECTION_H */
+

Added: incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchLevel.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchLevel.h?rev=1345067&view=auto
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchLevel.h (added)
+++ incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchLevel.h Fri Jun  1 11:23:35 2012
@@ -0,0 +1,36 @@
+/* $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to you under the Apache License, Version
+ * 2.0 (the "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __ETCHLEVEL_H__
+#define __ETCHLEVEL_H__
+#include "common/EtchConfig.h"
+
+typedef capu::uint32_t EtchLevel;
+
+enum {
+  /** No validation on put or output. */
+  LEVEL_NONE,
+  /** Validation on put or output if validator defined. */
+  LEVEL_MISSING_OK,
+  /** Like MISSING_OK, but fail if no validator defined. */
+  LEVEL_FULL
+};
+
+
+#endif /* ETCHLEVEL_H */
+