|
VR-Engage
2.2
|
This class manages a collection of DtRwRwrContactInfo elements, representing radar contacts detected by a Radar Warning Receiver. It provides methods for adding, removing, and finding contact information, as well as notification mechanisms for tracking changes to the list.
Use the DtRwList::add() and remove() methods to add and remove elements. The list can be iterated through using DtList iteration methods. The list will delete all of its contents when destroyed, so use caution if holding pointers to any of the list elements.
If you need to monitor the change state of a list, use a DtRwrContactInfoListChangeMonitor.
#include <rwrContactInfoList.h>
Public Member Functions | |
| DtRwrContactInfoList () | |
| DtRwrContactInfoList (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtRwrContactInfoList (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) | |
| virtual | ~DtRwrContactInfoList () override |
| DtRwrContactInfoList (const DtString &name, const DtRwrContactInfoList &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtRwrContactInfoList (const DtSymbolString &name, const DtRwrContactInfoList &orig, DtReaderWriterRegistry *parentRegistry=NULL) | |
| DtRwrContactInfoList & | operator= (const DtRwrContactInfoList &orig) |
| virtual DtRwrContactInfoList * | clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) |
| virtual DtRwrContactInfoList * | clone (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) |
| virtual void | clear () |
| virtual void | removeAndDelete (DtRwRwrContactInfo *contactInfo) |
| virtual DtRwRwrContactInfo * | createRwrContactInfo () |
| virtual void | addModifiedCallback (DtNoArgumentCallbackList::DtCallbackFunctionType fcn, void *usr) |
| virtual void | removeModifiedCallback (DtNoArgumentCallbackList::DtCallbackFunctionType fcn, void *usr) |
| virtual void | listModified () |
| bool | operator== (const DtRwrContactInfoList &other) const |
| virtual const char * | xmlType () const override |
Static Public Member Functions | |
| static const char * | theXmlType () |
Protected Member Functions | |
| void | copyList (const DtRwrContactInfoList &orig) |
| void | emptyList () |
| virtual DtlObjPtr | getData (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override |
| virtual const char * | readerWriterType () const override |
Protected Attributes | |
| DtNoArgumentCallbackList | myModifiedCallbackList |
| makVre::DtRwrContactInfoList::DtRwrContactInfoList | ( | ) |
Default constructor.
Creates a new RWR contact information list with default values.
Referenced by clone(), clone(), copyList(), DtRwrContactInfoList(), DtRwrContactInfoList(), operator=(), and operator==().
| makVre::DtRwrContactInfoList::DtRwrContactInfoList | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL ) |
Constructor with name.
| name | The name of this list |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new RWR contact information list with the specified name.
| makVre::DtRwrContactInfoList::DtRwrContactInfoList | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL ) |
Constructor with name as symbol string.
| name | The name of this list as a symbol string |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new RWR contact information list with the specified name.
|
overridevirtual |
Virtual destructor.
Cleans up resources used by the list, including deleting all contact information elements.
| makVre::DtRwrContactInfoList::DtRwrContactInfoList | ( | const DtString & | name, |
| const DtRwrContactInfoList & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL ) |
Copy constructor with name.
| name | The name of the new list |
| orig | The source list to copy from |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new RWR contact information list as a deep copy of the provided original, cloning all list items onto the new list.
References DtRwrContactInfoList().
| makVre::DtRwrContactInfoList::DtRwrContactInfoList | ( | const DtSymbolString & | name, |
| const DtRwrContactInfoList & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL ) |
Copy constructor with name as symbol string.
| name | The name of the new list as a symbol string |
| orig | The source list to copy from |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a new RWR contact information list as a deep copy of the provided original, cloning all list items onto the new list.
References DtRwrContactInfoList().
| DtRwrContactInfoList & makVre::DtRwrContactInfoList::operator= | ( | const DtRwrContactInfoList & | orig | ) |
Assignment operator.
| orig | The source list to copy from |
Assigns the contents of the provided list to this one. This is a deep copy; all items on the target list are deleted, and new items are cloned onto the list.
References DtRwrContactInfoList().
|
virtual |
Creates a complete clone of the list and all items.
| name | The name for the cloned list |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a complete clone of this list and all items on it.
References DtRwrContactInfoList().
|
virtual |
Creates a complete clone of the list and all items.
| name | The name for the cloned list as a symbol string |
| parentRegistry | Parent registry for reader/writer functionality (optional) |
Creates a complete clone of this list and all items on it.
References DtRwrContactInfoList().
|
virtual |
Clears the list.
Removes and deletes all contact information elements from the list. This method calls the non-virtual emptyList() function.
|
virtual |
Removes and deletes a contact information element.
| contactInfo | Pointer to the contact information to remove and delete |
If the specified contact info is on the list, removes it from the list and deletes the contact info object.
|
virtual |
Commented-out method for finding contact info by contact ID.
Would find the first contact info in the list with the specified contact, and return a pointer to it, or NULL if not found.
Commented-out method for getting all contact IDs
Would return a set of all the contact IDs in the list.
Factory method to create new RWR contact information elements
Creates a new DtRwRwrContactInfo or derivative object. This base class implementation creates the base DtRwRwrContactInfo type.
The getData() method uses this factory when adding new items to the list that are read from an input file. All items on the list should be of the type created by this method.
|
virtual |
Adds a callback for list modification notifications.
| fcn | The callback function to add |
| usr | User data pointer to pass to the callback |
Registers a callback that will be invoked when the list or any of its contents change.
|
virtual |
Removes a callback for list modification notifications.
| fcn | The callback function to remove |
| usr | User data pointer that was registered with the callback |
Unregisters a previously registered modification callback.
|
virtual |
Notifies that the list has been modified.
Call this method after making changes to the contents of the list. This will invoke all registered modification callbacks.
| bool makVre::DtRwrContactInfoList::operator== | ( | const DtRwrContactInfoList & | other | ) | const |
Equality operator.
| other | The list to compare with |
Compares this list with another to determine if they are equal.
References DtRwrContactInfoList().
|
static |
Gets the XML type identifier.
Returns the type identifier used when archiving to an XML stream.
Referenced by xmlType().
|
inlineoverridevirtual |
Gets the XML type identifier for this instance.
Returns the type identifier used when archiving this instance to an XML stream.
References theXmlType().
|
protected |
Copies contents from another list.
| orig | The source list to copy from |
Helper method used by constructors to copy contents from another list. Performs a deep copy of all list elements.
References DtRwrContactInfoList().
|
protected |
Removes and deletes all list elements.
Helper method used by the destructor and clear() to remove and delete all elements from the list.
|
overrideprotectedvirtual |
Processes input data to populate the list.
| args | Input arguments to process |
| searchPaths | Search paths for resolving file references |
| variableBindings | Variable bindings for resolving script variables |
Constructs contact information elements and reads their data from the input arguments.
|
overrideprotectedvirtual |
Gets the reader/writer type identifier.
Returns the type identifier for this reader/writer class. This can be used in place of dynamic-casting and is also used by the OPD editor to determine which type of control to create.
|
protected |
List of callbacks for modification notifications.
Stores the list of callback functions to be invoked when the list or its contents are modified.