VR-Forces 5.0.3 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>
38 {
39 
40 public:
41 
44 
47  DtSetFormationRequest(const DtString & writeName,
48  DtReaderWriterRegistry * parentRegistry = 0);
49 
51  DtSetFormationRequest(const DtString & writeName,
52  const DtSetFormationRequest & orig,
53  DtReaderWriterRegistry * parentRegistry = 0);
54 
57 
58  virtual ~DtSetFormationRequest();
59 
61  virtual const DtSetMessageType& type() const;
62 
64  virtual DtSetDataRequest * clone(const DtString & name,
65  DtReaderWriterRegistry * parentRegistry = 0) const;
66 
68  virtual DtString stringRep() const;
69 
73 
74  virtual DtString formationName() const;
75  virtual void setFormationName(const DtString& name);
77 
80  virtual int netRepSize() const;
81 
83  virtual bool setFromNet(const char* contentBuffer,
84  unsigned contentSize);
85 
88  virtual bool setToNet();
89 
92  virtual void getSelf(DtlObjPtr args,
94  const DtVariableBindingsList& variableBindings = nullVariableReference());
95 
96  static DtSetDataRequest * creator();
97 
98 protected:
99 
101 };
102 
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:37
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:100
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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)