VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setResourceRequest.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 #pragma once
15 
17 #include "vrfutil/rwString.h"
18 #include "vrfutil/rwReal.h"
19 #include <vlpi/netStructs.h>
20 
21 
25 {
26  DtNetFloat64 myResourceValue;
28 };
29 
45 {
46 
47 public:
48 
51 
54  DtSetResourceRequest(const DtString & writeName,
55  DtReaderWriterRegistry * parentRegistry = 0);
56 
58  DtSetResourceRequest(const DtString & writeName, const DtSetResourceRequest &
59  orig, DtReaderWriterRegistry * parentRegistry = 0);
60 
63 
64  virtual ~DtSetResourceRequest();
65 
67  virtual const DtSetMessageType& type() const;
68 
70  virtual DtSetDataRequest * clone(const DtString & name,
71  DtReaderWriterRegistry * parentRegistry = 0) const;
72 
74  virtual DtString stringRep() const;
75 
77  virtual const DtString & resourceName() const;
78  virtual void setResourceName(const DtString & resource);
79 
80  virtual DtReal resourceValue() const;
81  virtual void setResourceValue(DtReal value);
82 
85  virtual int netRepSize() const;
86 
88  virtual bool setFromNet(const char* contentBuffer,
89  unsigned contentSize);
90 
93  virtual bool setToNet();
94 
95  static DtSetDataRequest * creator();
96 
97 protected:
98 
101 
102 };
103 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)