VR-Forces 4.0.4 Class Documentation
include/vrfutil/formTbl.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2001 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: formTbl.h,v $ $Revision: 1.2 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00013 
00014 #ifndef DtFormationTable_H_
00015 #define DtFormationTable_H_
00016 
00017 #include "vrfutil/rwList.h"
00018 #include <vlutil/vlHashlist.h>
00019 #include "vrfutil/formTblEntry.h"
00020 #include "vrfutil/formation.h"
00021 
00025 #include "vrfutil/vrfutilDefines.h"
00026 class DT_DLL_vrfutil DtFormationTable : public DtRwList
00027 {
00028 public:
00029 
00031    DtFormationTable();
00032 
00034    DtFormationTable(const DtString& writeName, 
00035       DtReaderWriterRegistry* parentRegistry = NULL);
00036    DtFormationTable(const DtSymbolString& writeName, 
00037       DtReaderWriterRegistry* parentRegistry = NULL);
00038 
00040    virtual ~DtFormationTable();
00041 
00043    DtFormationTable(const DtString& writeName, const DtFormationTable&
00044       orig, DtReaderWriterRegistry* parentRegistry = NULL);
00045    DtFormationTable(const DtSymbolString& writeName, const DtFormationTable&
00046       orig, DtReaderWriterRegistry* parentRegistry = NULL);
00047 
00049    const DtFormationTable & operator=(const DtFormationTable & orig);
00050 
00051    virtual DtFormationTable* clone(const DtString& name, 
00052       DtReaderWriterRegistry* parentRegistry = NULL) const;
00053    virtual DtFormationTable* clone(const DtSymbolString& name, 
00054       DtReaderWriterRegistry* parentRegistry = NULL) const;
00055 
00057    virtual DtFormation* getFormation(const DtString& formationName) const;
00058 
00060    virtual DtFormation* getDefaultFormation() const;
00061 
00063    virtual DtFormationTableEntry* getDefaultFormationEntry() const;
00064 
00067    virtual void setFormationToDefault(DtFormationTableEntry* entry);
00068 
00072    virtual void addFormation(const DtString& formationName, const DtFormation& formation);
00073 
00076    virtual bool removeFormation(const DtString& formationName);
00077 
00082    virtual void addFormationEntry(DtFormationTableEntry* entry);
00083 
00085    virtual DtFormationTableEntry* getFormationEntry(const DtString& formationName) const;
00086 
00088    virtual void getSelf(DtlObjPtr args, const DtFilename& searchPath,
00089       const DtVariableBindingsList& variableBindings);
00090 
00094    virtual const char* readerWriterType() const;
00095 
00097    bool operator==(const DtFormationTable&) const;
00098    bool operator!=(const DtFormationTable&) const;
00099 
00100 protected:
00103    virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
00104       const DtVariableBindingsList& variableBindings);
00105 
00108    void copyTable(const DtFormationTable& other);
00111    void emptyTable();
00112 
00113 protected:
00114 };
00115 
00116 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)