VR-Exchange 2.2 API Documentation
pObject.h
Go to the documentation of this file.
1 /*********************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3  ** All rights reserved.
4  *********************************************************************/
5 
6 #ifndef pObjectUpdate_H_
7 #define pObjectUpdate_H_
8 
12 
13 
14 #include <portal/pMessage.h>
15 #include <vlutil/vlString.h>
16 
17 namespace MAKVrExchange {
18 
24 class DT_DLL_LIBPORTAL DtPortalObject: public DtPortalMessage
25 {
26 
27 public:
28 
30  virtual ~DtPortalObject();
31 
32 
33  DtPortalObject(const DtPortalObject& other);
34  DtPortalObject &operator=(const DtPortalObject& other);
35 
36  bool operator!=(const DtPortalObject& other) const;
37  bool operator==(const DtPortalObject& other) const;
38 
39 
40 
44  virtual DtPortalMessageKind kind() const = 0;
45 
48  virtual const char* objectKindName() const = 0;
49 
52  virtual unsigned int netSize() const;
53 
56  virtual void writeSelfToBuffer(void *buffer) const ;
57 
60  virtual void readSelfFromBuffer(const void *buffer);
61 
63  virtual std::ostream &printDataToStream(std::ostream &str) const;
64 
67 
70  DtDEC_ATTRIBUTE(DtString, Identifier, identifier);
71 
74  DtDEC_ATTRIBUTE(bool, FinalMessage, finalMessage);
75 
77 
79 public:
80 
81  virtual bool isFiltered() const;
82  virtual void setFiltered( bool value );
83 
84 protected:
85 
87  bool myFiltered;
88 
89 }; //end class DtPortalObject
90 
91 inline bool DtPortalObject::isFiltered() const
92 {
93  return myFiltered;
94 }
95 
96 inline void DtPortalObject::setFiltered( bool value )
97 {
98  myFiltered = value;
99 }
100 
101 }
102 
103 #endif //end #ifndef pObjectUpdate_H_
104 

Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)