VR-Link API Documentation for DIS
 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-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 #pragma once
6 
7 #if DtHLA
8 
9 #include <vl/stateRepository.h>
10 #include <matrix/vlVector.h>
11 
16 class TestStateRepository : public DtStateRepository
17 {
18 public:
19 
21  TestStateRepository();
22 
24  virtual ~TestStateRepository();
25 
27  TestStateRepository(const TestStateRepository& orig);
28 
30  TestStateRepository& operator=(const TestStateRepository& orig);
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;
70  DtVector myVec;
71 };
72 
73 #endif
74 
This file declares DtVector and DtVector32.
Definition: vlVector.h:224
virtual DtStateRepository * clone(bool copy=false) const
Return a copy/empty object of the same type as this.
DtStateRepository is an abstract base class for maintaining state for an object.
Definition: stateRepository.h:50
virtual void printData() const
Print State Data to the DtInfo Stream.
virtual void printDataToStream(std::ostream &stream) const
Prints the State Data to the stream specified.
DtStateRepository & operator=(const DtStateRepository &orig)
assignment operator

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)