VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
radioDescriptorList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: vrfRadioDescriptorList.h,v $ $Revision: 1.3 $ $State: Exp $
7 *******************************************************************************/
8 
11 
13 
14 #ifndef vrfRadioDescriptorList_h
15 #define vrfRadioDescriptorList_h
16 
17 #include <readerWriter/rwList.h>
19 
21 class DtFilename;
22 
28 {
29 protected:
31 
32 public:
33 
35  DtRadioDescriptorList(const DtString& name,
36  DtReaderWriterRegistry * parentRegistry = 0);
37 
40  const DtRadioDescriptorList& orig,
41  DtReaderWriterRegistry * parentRegistry = 0);
42 
47  DtRadioDescriptorList& orig);
48 
50  virtual ~DtRadioDescriptorList() override;
51 
53  parentRegistry = 0);
54 
57  virtual DtVrfRadioDescriptor* addRadioDescriptor(const DtVrfRadioDescriptor& descriptor);
58 
61  virtual const DtVrfRadioDescriptor* lookupRadioDescriptor(const DtString& name) const;
62  virtual DtVrfRadioDescriptor* lookupRadioDescriptor(const DtString& name);
63 
67  virtual const char* readerWriterType() const override;
68 
70  static const char* theXmlType();
71 
72  virtual const char* xmlType() const override {
73  return theXmlType();
74  }
75 
76  bool operator==(const DtRadioDescriptorList&) const;
77  bool operator!=(const DtRadioDescriptorList& rhs) const { return !(*this == rhs); };
78 
79 protected:
81  void emptyList();
82  void copyList(const DtRadioDescriptorList& orig);
83 
86  virtual void addRadioDescriptor(DtVrfRadioDescriptor * descriptor);
88  virtual DtListItem * lookupRadioDescriptorItem(const DtString& name) const;
89 
90  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
91  const DtVariableBindingsList& variableBindings) override;
92 };
93 
94 #endif
bool operator!=(const DtRadioDescriptorList &rhs) const
Definition: radioDescriptorList.h:77
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override=0
This method must be overridden by a subclass. Within this method, new instances of the DtReaderWriter...
virtual const char * xmlType() const override
Routines to archive/dearchive from an XML Environment.
Definition: radioDescriptorList.h:72
A Readable, Writable version of DtList. This class cannot be used directly, but must be inherited to ...
Definition: rwList.h:26
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
static const char * theXmlType()
The type that is used when archiving to an XML stream.
Definition: readerWriterRegistry.h:39
List of DtRadioDescriptor subclasses that can be read from a RW type file. This class owns all descri...
Definition: radioDescriptorList.h:27
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
bool operator==(const DtRwList &rhs) const
Iterates over all items and calls the factory to compare.
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...
const DtRwList & operator=(const DtRwList &orig)
Calls down to DtReaderWriter::operator=(). List elements are not copied.
Descriptor base class for DtRadio instances. A descriptor tells what type of radio to create as well ...
Definition: vrfRadioDescriptor.h:37

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)