VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setWidthRequest.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <readerWriter/rwReal.h>
13 
14 
15 
26 {
27 
28 public:
29 
32 
35  DtSetWidthRequest(const DtString & writeName,
36  DtReaderWriterRegistry * parentRegistry = 0);
37 
39  DtSetWidthRequest(const DtString & writeName, const DtSetWidthRequest &
40  orig, DtReaderWriterRegistry * parentRegistry = 0);
41 
43  const DtSetWidthRequest & operator=(const DtSetWidthRequest & orig);
44 
45  virtual ~DtSetWidthRequest();
46 
48  virtual const DtSetMessageType& type() const;
49 
51  virtual DtSetDataRequest * clone(const DtString & name,
52  DtReaderWriterRegistry * parentRegistry = 0) const;
53 
55  virtual DtString stringRep() const;
56 
58  virtual double width() const;
59  virtual void setWidth(double w);
60 
63  virtual int netRepSize() const;
64 
66  virtual bool setFromNet(const char* contentBuffer,
67  unsigned contentSize);
68 
71  virtual bool setToNet();
72 
73  static DtSetDataRequest * creator();
74 
75 protected:
76 
78 
79 };
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
DtRwReal myWidth
Definition: setWidthRequest.h:77
Definition: readerWriterRegistry.h:39
virtual int netRepSize() const
DtSetDataRequest is an abstract base class from which real setDataRequests can derive. It manages the read/write capability; derived classes need only use and register read/writatble data types for derived information.
Definition: setDataRequest.h:41
virtual const DtSetMessageType & type() const =0
What kind of setDataRequest am I? (from radioMsgTypes.h). Returns a string representing the kind of d...
virtual DtSetDataRequest * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this request. Returns a pointer to a newly created copy of this data request...
const DtSetDataRequest & operator=(const DtSetDataRequest &orig)
assignment operator; same as copy costructor.
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets the contents of this set request based on the network buffer. Base class does nothing and return...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtString stringRep() const =0
Get a readable string representation of this setDataRequest. Returns a human readable string represen...
DtSetWidthRequest is used to set the width of an object.
Definition: setWidthRequest.h:25

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)