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() override;
56 
58  virtual const DtSetMessageType& type() const override;
59 
61  virtual DtSetDataRequest * clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
62 
64  virtual DtString stringRep() const override;
65 
69 
70  virtual DtString formationName() const;
71  virtual void setFormationName(const DtString& name);
73 
76  virtual int netRepSize() const override;
77 
79  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
80 
83  virtual bool setToNet() override;
84 
87  virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths = DtReaderWriter::SearchPaths(),
88  const DtVariableBindingsList& variableBindings = nullVariableReference()) override;
89 
90  static DtSetDataRequest * creator();
91 
92 protected:
93 
95 };
96 
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:94
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 Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)