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 14:57:35 UTC

svn commit: r1345146 - in /incubator/etch/trunk/binding-cpp/runtime: include/serialization/EtchTaggedDataInput.h include/serialization/EtchTaggedDataOutput.h src/main/CMakeLists.txt

Author: veithm
Date: Fri Jun  1 12:57:34 2012
New Revision: 1345146

URL: http://svn.apache.org/viewvc?rev=1345146&view=rev
Log:
ETCH-181 EtchTaggedData Interfaces

Change-Id: Ida69e5a7e13b5b515ca0ca2165114b4e15e2dba1

Added:
    incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchTaggedDataInput.h
    incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchTaggedDataOutput.h
Modified:
    incubator/etch/trunk/binding-cpp/runtime/src/main/CMakeLists.txt

Added: incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchTaggedDataInput.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchTaggedDataInput.h?rev=1345146&view=auto
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchTaggedDataInput.h (added)
+++ incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchTaggedDataInput.h Fri Jun  1 12:57:34 2012
@@ -0,0 +1,42 @@
+/* $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 __ETCHTAGGEDDATAINPUT_H__
+#define	__ETCHTAGGEDDATAINPUT_H__
+#include "transport/EtchFlexBuffer.h"
+#include "transport/EtchMessage.h"
+#include "capu/util/SmartPointer.h"
+
+class EtchTaggedDataInput {
+public:
+
+  /**
+   * Reads a message from the buf.
+   * @param buf the flex buffer containing the message.
+   * @param a message read from the buf.
+   */
+  virtual status_t readMessage(capu::SmartPointer<EtchFlexBuffer> buf, EtchMessage *&message) = 0;
+
+  virtual ~EtchTaggedDataInput() {
+
+  }
+
+};
+
+#endif /* ETCHTAGGEDDATAINPUT_H */
+

Added: incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchTaggedDataOutput.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchTaggedDataOutput.h?rev=1345146&view=auto
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchTaggedDataOutput.h (added)
+++ incubator/etch/trunk/binding-cpp/runtime/include/serialization/EtchTaggedDataOutput.h Fri Jun  1 12:57:34 2012
@@ -0,0 +1,43 @@
+/* $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 __ETCHTAGGEDDATAOUTPUT_H__
+#define __ETCHTAGGEDDATAOUTPUT_H__
+#include "transport/EtchFlexBuffer.h"
+#include "transport/EtchMessage.h"
+
+class EtchTaggedDataOutput {
+public:
+
+  /**
+   * Writes the message to the buf.
+   * @param msg the message to be written.
+   * @param buf the buffer to write to.
+   */
+  virtual status_t writeMessage(EtchMessage* msg, EtchFlexBuffer* buf) = 0;
+
+  virtual ~EtchTaggedDataOutput() {
+
+  }
+
+};
+
+
+#endif /* ETCHTAGGEDDATAOUTPUT_H */
+

Modified: incubator/etch/trunk/binding-cpp/runtime/src/main/CMakeLists.txt
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/src/main/CMakeLists.txt?rev=1345146&r1=1345145&r2=1345146&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/src/main/CMakeLists.txt (original)
+++ incubator/etch/trunk/binding-cpp/runtime/src/main/CMakeLists.txt Fri Jun  1 12:57:34 2012
@@ -98,6 +98,8 @@ SET(MAIN_INCLUDES
     ${PROJECT_SOURCE_DIR}/include/serialization/EtchDateSerializer.h
     ${PROJECT_SOURCE_DIR}/include/serialization/EtchDefaultValueFactory.h
     ${PROJECT_SOURCE_DIR}/include/serialization/EtchValidatorStructValue.h
+	${PROJECT_SOURCE_DIR}/include/serialization/EtchTaggedDataInput.h
+	${PROJECT_SOURCE_DIR}/include/serialization/EtchTaggedDataOutput.h
     ${PROJECT_SOURCE_DIR}/include/util/EtchUtil.h
     )