VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwBooleanList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2002 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: rwBooleanList.h,v $ $Revision: 1.2 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #pragma once
13 
14 #include "vrfutil/vrfutilDefines.h"
15 #include <readerWriter/rwList.h>
16 
21 
22 class DtRwBoolean;
23 
25 {
26 public:
27 
30 
33  parentRegistry = NULL);
35  parentRegistry = NULL);
37  parentRegistry = NULL);
38 
40  virtual ~DtRwBooleanList();
41 
43  DtRwBooleanList(const DtString& name, const DtRwBooleanList& orig,
44  DtReaderWriterRegistry* parentRegistry = NULL);
45 
46  DtRwBooleanList(const DtSymbolString& name, const DtRwBooleanList& orig,
47  DtReaderWriterRegistry* parentRegistry = NULL);
48 
51 
53  virtual void addBoolean(DtRwBoolean* rwBool);
54 
58  virtual void removeBoolean(DtRwBoolean* rwBool, DtListItem* listItem);
59 
61  void emptyList();
62 
66  virtual const char* readerWriterType() const;
67 
69  static const char* theXmlType();
70 
71  virtual const char* xmlType() const
72  {
73  return theXmlType();
74  }
75 
76 protected:
77 
80  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
81  const DtVariableBindingsList& variableBindings);
82 
84  void copyList(const DtRwBooleanList& orig);
85 };
86 
87 
88 namespace DtBufferSerialize
89 {
91  DT_DLL_vrfutil int getSize(const DtRwBooleanList& val);
92 
98  DT_DLL_vrfutil char *encode(const DtRwBooleanList& val, char *buffer);
99 
105  DT_DLL_vrfutil const char *decode(DtRwBooleanList &val, const char *buffer);
106 }
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. This class cannot be used directly, but must be inherited to ...
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. Within this method, new instances of the DtReaderWriter...
Definition: rwBooleanList.h:24
virtual const char * xmlType() const
Routines to archive/dearchive from an XML Environment.
Definition: rwBooleanList.h:71
static const char * theXmlType()
The type that is used when archiving to an XML stream.
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. buffer must have at least the number of bytes returned...
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
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
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
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...

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)