VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testSR.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 #pragma once
6 
7 #if DtHLA
8 
9 #include <vl/stateRepository.h>
10 #include <matrix/vlVector.h>
11 
17 {
18 public:
19 
22 
24  virtual ~TestStateRepository();
25 
28 
31 
33  virtual DtStateRepository* clone(bool copy) const;
34 
37  virtual void printData() const;
38 
41  virtual void printDataToStream(std::ostream& stream) const;
42 
50 
52  virtual void setNumber(int num);
53  virtual int number() const;
54 
56  virtual void setVector(const DtVector& vec);
57  virtual const DtVector& vector() const;
58 
59 public:
60 
64  static DtStateRepository* create();
65 
66 protected:
67 
69  int myNum;
71 };
72 
73 #endif
74 
virtual void setNumber(int num)
Inspector and mutator functions for the object&#39;s state data.
TestStateRepository()
Default constructor.
virtual void printDataToStream(std::ostream &stream) const
prints the internal representation of the attributes to the specified stream.
virtual const DtVector & vector() const
virtual DtStateRepository * clone(bool copy) const
Return a copy/empty object of the same type as this. Required.
This file declares DtVector and DtVector32.
Definition: vlVector.h:224
virtual int number() const
DtVector myVec
Definition: testSR.h:70
virtual void printData() const
Prints the internal representation of the attributes to the DtInfo stream.
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
int myNum
Here, we store the actual data values, in native representation.
Definition: testSR.h:69
TestStateRepository & operator=(const TestStateRepository &orig)
Assignment operator.
virtual void setVector(const DtVector &vec)
Set/Get the attribute named &quot;Vector&quot;.
Define the TestStateRepository class.
Definition: testSR.h:16
static DtStateRepository * create()
Create and return a new TestStateRepository.
virtual ~TestStateRepository()
Destructor.

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)