WebLVC 1.7d API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pObject.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pMessage.h>
13 #include <vlutil/vlString.h>
14 
15 namespace MAKVrExchange
16 {
17 
24  {
25  public:
26 
28  DtPortalObject( DtPortalMessageKind kind, const DtString& name );
29 
31  DtPortalObject( const DtPortalObject& other );
32 
34  virtual ~DtPortalObject();
35 
37  virtual DtPortalObject& operator = ( const DtPortalObject& other );
38 
41 
42  virtual bool operator == ( const DtPortalObject& other ) const;
43  virtual bool operator != ( const DtPortalObject& other ) const;
44 
46 
49 
53  DtDEC_ATTRIBUTE( DtString, Name, name );
54 
57  DtDEC_ATTRIBUTE( DtString, Identifier, identifier );
58 
61  DtDEC_ATTRIBUTE( bool, FinalMessage, finalMessage );
62 
64  DtDEC_ATTRIBUTE( bool, Filtered, isFiltered );
65 
67  DtDEC_ATTRIBUTE( DtAttributeValuePairList, AttributeValuePairList,
68  attributeValuePairList );
69 
72  DtDEC_ATTRIBUTE( bool, IsUpdated, isUpdated );
73 
75 
77  public:
78 
79  virtual unsigned int netSize() const;
80  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
81  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
82 
83  virtual std::ostream& printDataToStream( std::ostream& str ) const;
84 
85  };
86 
87 }
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
#define DtDEC_ATTRIBUTE(T, N, n)
A Macro to define an attribute; as well as make an accessor and mutator for that attribute.
Definition: addAttribute.h:49
Contains the DtPortalMessage class declaration.
DtPortalObject are messages which also serve as state repositories for simulated objects.
Definition: pObject.h:23
The base class for all messages passed through the portal.
Definition: pMessage.h:65
std::list< DtAttributeValuePair > DtAttributeValuePairList
A list of DtAttributeValuePairs.
Definition: variableLengthData.h:79
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23

Document ID: Generated on Wed Jun 21 15:05:44 EDT 2023 from SVN revision 256253
Copyright © 2005-2023 MAK Technologies. All Rights Reserved (www.mak.com)