VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwConditionsList.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 
11 #include "vrfutil/vrfutilDefines.h"
12 #include <readerWriter/rwList.h>
13 
14 class DtSimCondExpr;
15 
20 {
21 public:
22 
25 
28  parentRegistry = NULL);
30  parentRegistry = NULL);
32  parentRegistry = NULL);
33 
35  virtual ~DtRwConditionsList();
36 
40 
41  DtRwConditionsList(const DtString& name, const DtRwConditionsList& orig,
42  DtReaderWriterRegistry* parentRegistry = NULL);
43 
44  DtRwConditionsList(const DtSymbolString& name, const DtRwConditionsList& orig,
45  DtReaderWriterRegistry* parentRegistry = NULL);
47 
49  virtual void addCondition(const DtSimCondExpr&);
50 
52  virtual void removeCondition(const DtSimCondExpr&);
53 
58 
60  void emptyList();
61 
63  void copyList(const DtRwConditionsList& orig);
64 
65 protected:
66 
69  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
70  const DtVariableBindingsList& variableBindings);
71 };
72 
73 namespace DtBufferSerialize
74 {
75  DT_DLL_vrfutil char *encode(const DtRwConditionsList& val, char *buffer);
76  DT_DLL_vrfutil const char *decode(DtRwConditionsList& val, const char *buffer);
78 }
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
Definition: symbolString.h:20
A Readable, Writable version of DtList.
Definition: rwList.h:26
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)=0
This method must be overridden by a subclass.
Definition: readerWriterRegistry.h:39
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer.
DtSimCondExpr is an abstract base class representing various Conditional Expressions used by the Plan...
Definition: simCondExpr.h:49
const DtRwList & operator=(const DtRwList &orig)
Calls down to DtReaderWriter::operator=(). List elements are not copied.
#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...
Instances of DtRwConditionsList are lists of readable, writeable sim conditions (DtSimCondExpr).
Definition: rwConditionsList.h:19

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)