VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
stealthCommand.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfutil/vrfutilDefines.h"
13 
14 #include <readerWriter/rwString.h>
15 
16 #include <vector>
17 
21 
23 {
24 public:
27 
30 
32  virtual ~DtStealthCommand();
33 
35  DtStealthCommand& operator=(const DtStealthCommand& orig);
36 
39  virtual void setStealthCommand(const DtString&);
40  const DtString& stealthCommand() const
41  {
42  return myStealthCommand;
43  }
45 
48  virtual void setDisplayName(const DtString&);
49  const DtString& displayName() const
50  {
51  return myDisplayName;
52  }
53 
56  virtual char* setToNet(char* buffer) const;
57  virtual const char* setFromNet(const char* buffer);
58  virtual int netRepSize() const;
60 
63  virtual bool variable(const std::string& s, DtScriptedTaskVariable& var) const;
64 
69  virtual void setVariables(const std::vector<DtScriptedTaskVariable>&);
70  virtual void addVariable(const DtScriptedTaskVariable&);
71  virtual void insertVariableBefore(const DtScriptedTaskVariable&, const std::string& variable);
72  virtual void insertVariableBefore(const DtScriptedTaskVariable&, int i);
73  virtual void removeVariable(const std::string&);
74  virtual void removeVariable(int);
75 
76  virtual std::vector<DtScriptedTaskVariable> variables() const;
77 
81  virtual DtRwVariableBindings* defaultVariableBindings() const;
82 
84  virtual void setupDefaultsFromBindings(const DtRwVariableBindings&);
86 
87 protected:
90  std::vector<std::string> myVariables;
91 };
92 
93 namespace DtBufferSerialize
94 {
96  DT_DLL_vrfutil const char* decode (DtStealthCommand&, const char*);
97  DT_DLL_vrfutil char* encode(const DtStealthCommand&, char*);
98 }
99 
100 typedef std::vector<DtStealthCommand> DtStealthCommands;
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
std::vector< std::string > myVariables
Definition: stealthCommand.h:90
DtString myStealthCommand
Definition: stealthCommand.h:88
std::vector< DtStealthCommand > DtStealthCommands
Definition: stealthCommand.h:100
ReaderWriter object that maintains a list of reader-writer variable bindings. It keeps a list of name...
Definition: rwVariableBindings.h:27
DtString myDisplayName
Definition: stealthCommand.h:89
A class for keeping track of meta data for variables of scripted tasks. The information is currently ...
Definition: scriptedTaskVariable.h:34
const DtString & stealthCommand() const
Stealth command accessors.
Definition: stealthCommand.h:40
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
const DtString & displayName() const
Display name accessors.
Definition: stealthCommand.h:49
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
The DtStealthCommand is an instance of a stealth command and variables that are used to satisfy the s...
Definition: stealthCommand.h:22

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)