VR-Exchange 2.9 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pGenericObject.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pObject.h>
13 #include <matrix/vlTaitBryan.h>
14 #include <vlutil/vlString.h>
15 
16 namespace MAKVrExchange
17 {
18 
22  {
23  public:
24 
27 
30 
32  virtual ~DtPortalGenericObject();
33 
35  DtPortalGenericObject& operator = ( const DtPortalGenericObject& other );
36 
39 
40  bool operator == ( const DtPortalGenericObject& other ) const;
41  bool operator != ( const DtPortalGenericObject& other ) const;
42 
44 
47 
48  DtDEC_ATTRIBUTE( DtString, ClassName, className );
49  DtDEC_ATTRIBUTE( DtAttributeValuePairList, GenericAttributeValuePairList,
50  genericAttributeValuePairList );
51 
53 
54  public:
55 
57 
58  static DtPortalMessage* create();
59 
60  virtual unsigned int netSize() const;
61  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
62  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
63 
64  virtual std::ostream& printDataToStream( std::ostream& str ) const;
65 
66  };
67 
68 
70  {
71  return new DtPortalGenericObject();
72  }
73 
74 }
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
static DtPortalMessage * create()
Definition: pGenericObject.h:69
A message to transport variable length Handle/ variable Length Data across a network.
Definition: pGenericObject.h:21
#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
static const DtPortalMessageKind theKind
Definition: pGenericObject.h:56
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:66
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
Contains the DtPortalObject class declaration.

Document ID: Generated on Tue Jun 25 16:45:35 EDT 2024 from SVN revision 267383
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)