VR-Forces 4.2 Class Documentation
ifResMonResponse.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: ifResMonResponse.h,v $ $Revision: 1.4 $ $State: Exp $
7 *******************************************************************************/
8 
11 
17 
18 
19 #ifndef DtIfResourceMonitorResponse_H_
20 #define DtIfResourceMonitorResponse_H_
21 
24 
25 #include <list>
26 
30 {
31  DtNetFloat64 myCurrentSimTime;
32  DtNetU32 myRequestId;
34 };
37 
42 
43 typedef std::list<DtIfEntityResourceResponse> DtResourceList;
44 
47 #include "vrfmsgs/vrfmsgsDefines.h"
49 {
50 
51 public:
54 
57 
60 
61  virtual ~DtIfResourceMonitorResponse();
62 
64  virtual int type() const;
65 
66  virtual DtSimInterfaceContent * clone() const;
67 
68  virtual int netRepSize() const;
69  virtual bool setFromNet(const char* contentBuffer,
70  unsigned contentSize);
71  virtual bool setToNet();
72 
73  virtual void printDataToString(DtString& str);
74 
75  static DtSimInterfaceContent* creator();
76 
77 public:
78  virtual void setSimTime(const DtFloat64& simTime);
79  virtual const DtFloat64& simTime() const;
80 
81  virtual void addEntityResourceBlock(const DtIfEntityResourceResponse& res);
82  const DtResourceList& resourceBlocks() const { return myResourceBlocks; };
83 
86  virtual bool resourcesForEntity(const DtString& name,
87  DtIfEntityResourceResponse& info) const;
88 
89 protected:
91  DtFloat64 mySimTime;
92 };
93 
94 #endif

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)