00001 /***************************** 00002 File: RemoteTimePacket.h 00003 Language: C++ (header) 00004 Project: H3DNetworkingUtils 00005 The contents of this file are subject to the Mozilla Public License 00006 Version 1.1 (the "License"); you may not use this file except in 00007 compliance with the License. You may obtain a copy of the License at 00008 http://www.mozilla.org/MPL/ 00009 00010 Software distributed under the License is distributed on an "AS IS" 00011 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 00012 License for the specific language governing rights and limitations 00013 under the License. 00014 00015 The Original Code is H3DNetworkingUtils v1.0. 00016 00017 The Initial Developer of the Original Code is CSIRO. 00018 Portions created by the Initial Developer are Copyright (C) 1009 CSIRO. All Rights Reserved. 00019 Contributor(s): 00020 Chris Gunn <Chris.Gunn@csiro.au> <ChrisJGunn@gmail.com> 00021 ***************************/ 00022 // The RemoteTimePacket class provides a remote TimePacket field. It inherits most of its functionality from its 00023 // parent class. 00024 // This class adds a VRML database and the details of how to read and write 00025 // the field data. 00026 00027 // <INPUT_ONLY "toBeSent" "SFTime" "" > 00028 // <OUTPUT_ONLY "received" "SFTime" "" > 00029 00030 #ifndef RemoteTimePacket_H 00031 #define RemoteTimePacket_H 00032 00033 00034 #include "H3DNetworkingUtils/RemoteSF.h" 00035 #include "H3DNetworkingUtils/TimePacket.h" 00036 #include "H3DNetworkingUtils/SFTimePacket.h" 00037 00038 namespace H3DNetworkingUtils { 00039 00040 class H3D_NETWORKING_UTILS_DLL_SPEC RemoteTimePacket : public RemoteSF< SFTimePacket> { 00041 public: 00042 00043 RemoteTimePacket(); 00044 00045 static H3D::H3DNodeDatabase database; 00046 00047 protected: 00048 virtual void readValue(); 00049 // Read the parts of a fields value into the received field. 00050 00051 virtual void writeValue( const TimePacket & val ); 00052 // Send the correct parts of the value. 00053 00054 }; 00055 00056 } 00057 00058 #endif