VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwIntegerAttribute.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
13 
17 
18 #include "vrfutil/vrfutilDefines.h"
20 {
21 public:
22 
24  DtRwIntegerAttribute(const DtString& name = DtString::nullString(),
25  DtReaderWriterRegistry* const parentRegistry = NULL);
26 
28  DtReaderWriterRegistry* const parentRegistry = NULL);
29 
30  DtRwIntegerAttribute(const DtString& name,
31  const DtString& key,
32  const int& data,
33  DtReaderWriterRegistry* const parentRegistry = NULL);
34 
36  const DtString& key,
37  const int& data,
38  DtReaderWriterRegistry* const parentRegistry = NULL);
39 
41  virtual ~DtRwIntegerAttribute();
42 
45  const DtString& name = DtString::nullString(),
46  DtReaderWriterRegistry* parentRegistry = NULL);
47 
49  const DtSymbolString& name,
50  DtReaderWriterRegistry* parentRegistry = NULL);
51 
54 
56  DtIntegerAttribute& operator=(const DtIntegerAttribute& integerAttribute);
57 
61  virtual void putData(std::string& fp, int indentlLevel = 0);
62  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
63  const DtVariableBindingsList& variableBindings);
64 
66  virtual void putData(DtEnvironmentSP, DtEnvValueSP value) const;
67 
69  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP,
72 
76  virtual const char* readerWriterType() const;
77 
79  static const char* theXmlType();
80 
81  virtual const char* xmlType() const
82  {
83  return theXmlType();
84  }
85 
86  bool operator==(const DtRwIntegerAttribute&) const;
87  bool operator!=(const DtRwIntegerAttribute& rhs) const { return !(*this == rhs); };
88 };
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...
Definition: symbolString.h:20
DT_DLL_readerWriter DtBoost::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
virtual DtlObjPtr getData(DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Deriving class overrides these to get/put class specific data.
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
bool operator!=(const DtRwIntegerAttribute &rhs) const
Definition: rwIntegerAttribute.h:87
class DtRwIntegerAttribute:
Definition: rwIntegerAttribute.h:19
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
class DtIntegerAttribute:
Definition: integerAttribute.h:25
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtIntegerAttribute & operator=(const DtIntegerAttribute &orig)
virtual void putData(std::string &fp, int indentLevel=0)
Deriving class overrides these to get/put class specific data.
#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
static const char * theXmlType()
The type that is used when archiving to an XML stream.
virtual const char * xmlType() const
Definition: rwIntegerAttribute.h:81
bool operator==(const DtIntegerAttribute &rhs) const

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)