VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwResource.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
7 
8 #pragma once
10 #include <vrfutil/rwEntityType.h>
11 
13 {
14 
15 public:
16  DtRwResource();
17 
22  DtRwResource(const DtString& resourceName, DtReaderWriterRegistry*
23  parentRegistry = NULL);
24 
26  parentRegistry = NULL);
27 
28  DtRwResource(const DtString& resourceName, const DtRwResource&, DtReaderWriterRegistry*
29  parentRegistry = NULL);
30 
31  DtRwResource(const DtSymbolString& resourceName, const DtRwResource&, DtReaderWriterRegistry*
32  parentRegistry = NULL);
33 
34  DtEntityType& operator=(const DtEntityType& t) { return DtRwEntityType::operator=(t); };
35 
36 public:
37 
39  virtual ~DtRwResource() override;
40 
44  virtual const char* readerWriterType() const override;
45 
47  static const char* theXmlType();
48 
49  virtual const char* xmlType() const override
50  {
51  return theXmlType();
52  }
53 
56  virtual void setResource(const DtString&);
57 
58  virtual void getSelf(DtlObjPtr args,
59  const DtReaderWriter::SearchPaths& searchPaths = SearchPaths(),
60  const DtVariableBindingsList& variableBindings = nullVariableReference()) override;
61 };
virtual const char * readerWriterType() const override
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
Definition: readerWriterRegistry.h:39
DtRwEntityType & operator=(const DtRwEntityType &orig)
assignment: assigns value only
virtual const char * xmlType() const override
Routines to archive/dearchive from an XML Environment.
Definition: rwResource.h:49
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
DtEntityType & operator=(const DtEntityType &t)
Definition: rwResource.h:34
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
static const DtVariableBindingsList & nullVariableReference()
File: rwEntType.h.
Definition: rwEntityType.h:26
#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.
This class will read in an old resource by name and convert it to the type, or, just read it as type...
Definition: rwResource.h:12

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)