MAK Data Logger API Documentation for DIS
lgrDisArtPartList.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 
10 #ifndef lgrDisArtPartList_H_
11 #define lgrDisArtPartList_H_
12 
13 #if DtDIS
14 
15 #include "lgrSim.h"
16 
17 #include "uniqEntryArr.h"
18 #include "lgrDisArtPart.h"
19 
20 #include <vlutil/vlList.h>
21 #include <vlutil/vlTime.h>
22 #include <vlpi/NetStructs.h>
23 
24 namespace MAKLogger
25 {
26 
27 
32  {
33  public:
36 
38  virtual ~DtLgrArtPartList();
39 
41  DtLgrArtPartList( const DtLgrArtPartList& src );
42 
44  DtLgrArtPartList& operator=( const DtLgrArtPartList& src );
45 
46  public:
53  virtual bool init( const DtArtPartSpec* partSpecs );
54 
58  virtual bool init( int numParams, const DtNetArtParamRecord* netParams,
59  int& numAttachPartRecords, int& numAttachPartRecordsCopied,
60  char* bfr, int bsz );
61 
64  void clear();
65 
67  int fillNetParams( DtNetArtParamRecord* netParams ) const;
68 
72  virtual bool setArtParamVal(
73  int partType, int paramType, DtFloat32 val );
74  virtual bool getArtParamVal(
75  int partType, int paramType, DtFloat32& val ) const;
76 
78  virtual int numArtParts() const;
79 
81  virtual int numArtParams() const;
82 
84  virtual DtLgrArtPart* artPartFromPartNum( int partNum ) const;
85 
87  virtual DtLgrArtPart* artPartFromPartType( int partType ) const;
88 
90  virtual int partNumFromPartType( int partType ) const;
91 
92  public:
94  virtual void print() const;
95  virtual void print( DtString& str ) const;
96 
97  protected:
99  bool copyInstance( const DtLgrArtPartList& src );
101  bool resize( int numParts );
102 
103  public:
106  static bool partNotAttached( const DtNetArtParamRecord* param );
107 
108  protected:
112  };
113 
114 }
115 
116 #endif
117 #endif
118 

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)