VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwPatchIdentifier.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrfutil/vrfutilDefines.h>
14 #include <vlpi/patchIdentifier.h>
15 
17 class DT_DLL_vrfutil DtRwPatchIdentifier : public DtReaderWriter, public DtPatchIdentifier
18 {
19 public:
20 
22  DtRwPatchIdentifier( const DtString& name = DtString::nullString(), DtReaderWriterRegistry* parentRegistry = 0 );
23 
25  DtRwPatchIdentifier( const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = 0 );
26 
28  DtRwPatchIdentifier( const DtPatchIdentifier& id, const DtString& name = DtString::nullString(),
29  DtReaderWriterRegistry* parentRegistry = 0 );
30 
32  DtRwPatchIdentifier( const DtRwPatchIdentifier& orig, DtReaderWriterRegistry* parentRegistry = 0 );
33 
35  virtual ~DtRwPatchIdentifier();
36 
39 
41  const DtRwPatchIdentifier& operator = ( const DtPatchIdentifier& orig );
42 
45  virtual bool operator == ( const DtRwPatchIdentifier& orig ) const;
46  virtual bool operator != ( const DtRwPatchIdentifier& orig ) const;
48 
51  virtual bool operator == ( const DtPatchIdentifier& orig ) const;
52  virtual bool operator != ( const DtPatchIdentifier& orig ) const;
54 
56  virtual DtRwPatchIdentifier* clone(
57  const DtString& rwName = DtString::nullString(),
58  DtReaderWriterRegistry* parentRegistry = 0) const;
59 
62  virtual void putData( std::string& fp, int indentLevel = 0 );
63  virtual void putData( DtEnvironmentSP env, DtEnvValueSP value ) const;
64  virtual void getData( const DtEnvironmentSP env, const DtEnvValueSP value,
65  const DtReaderWriter::SearchPaths& searchPaths, const DtVariableBindingsList& bindings );
66  virtual DtlObjPtr getData( DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
67  const DtVariableBindingsList& variableBindings );
69 
70  virtual DtString prettyPrint() const;
71 
73  virtual const char* readerWriterType() const;
74 
76  static const char* theXmlType();
77 
78  virtual const char* xmlType() const
79  {
80  return theXmlType();
81  }
82 
83 };
bool operator==(const DtReaderWriter &) const
Equivalence operator.
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
virtual const char * xmlType() const
Definition: rwPatchIdentifier.h:78
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
virtual DtString prettyPrint() const
Routine to return a human readable form of the reader/writer variable. Not all reader/writer classes ...
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
Readable/writable form of DtPatchIdentifier.
Definition: rwPatchIdentifier.h:17
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
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
static const char * theXmlType()
The type that is used when archiving to an XML stream.
bool operator!=(const DtReaderWriter &rhs)
Definition: readerWriter.h:121

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)