VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setFormationRequest.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 
19 #include <readerWriter/rwString.h>
20 #include <vlutil/vlNetTypes.h>
35 {
36 
37 public:
38 
41 
44  DtSetFormationRequest(const DtString & writeName,
45  DtReaderWriterRegistry * parentRegistry = 0);
46 
48  DtSetFormationRequest(const DtString & writeName,
49  const DtSetFormationRequest & orig,
50  DtReaderWriterRegistry * parentRegistry = 0);
51 
54 
55  virtual ~DtSetFormationRequest();
56 
58  virtual const DtSetMessageType& type() const;
59 
61  virtual DtSetDataRequest * clone(const DtString & name,
62  DtReaderWriterRegistry * parentRegistry = 0) const;
63 
65  virtual DtString stringRep() const;
66 
70 
71  virtual DtString formationName() const;
72  virtual void setFormationName(const DtString& name);
74 
77  virtual int netRepSize() const;
78 
80  virtual bool setFromNet(const char* contentBuffer,
81  unsigned contentSize);
82 
85  virtual bool setToNet();
86 
89  virtual void getSelf(DtlObjPtr args,
91  const DtVariableBindingsList& variableBindings = nullVariableReference());
92 
93  static DtSetDataRequest * creator();
94 
95 protected:
96 
98 };
99 
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
virtual int netRepSize() const
File: setFrmation.h.
Definition: setFormationRequest.h:34
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
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
DtRwString myFormationName
Definition: setFormationRequest.h:97
virtual const DtSetMessageType & type() const =0
What kind of setDataRequest am I? (from radioMsgTypes.h). Returns a string representing the kind of d...
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
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...
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
static const DtVariableBindingsList & nullVariableReference()
virtual DtString stringRep() const =0
Get a readable string representation of this setDataRequest. Returns a human readable string represen...

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)