VR-Forces 4.0.4 Class Documentation
include/vrfobjcore/organizationChangeSet.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: organizationChangeSet.h,v $ $Revision: 1.3 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00013 
00014 #ifndef organizationChangeSet_h
00015 #define organizationChangeSet_h
00016 
00017 #include "vrfobjcore/vrfobjcoreDefines.h"
00018 #include <vlutil/vlString.h>
00019 #include <list>
00020 
00024 class DT_DLL_vrfobjcore DtOrganizationChangeSet
00025 {
00026 public:
00027    struct DtSetSubordinateInformation
00028    {
00029       DtString subordinateName;
00030       DtString superiorName;
00031       int designator;
00032    };
00033 
00034    struct DtSetSubordinateToForceInformation
00035    {
00036       DtString subordinateName;
00037       int designator;
00038    };
00039 
00040    typedef std::list<DtSetSubordinateInformation> DtSetSuperiorList;
00041    typedef std::list<DtSetSubordinateToForceInformation> DtSetSuperiorToForceList;
00042 
00043    DtOrganizationChangeSet();
00044    virtual ~DtOrganizationChangeSet();
00045    DtOrganizationChangeSet(const DtOrganizationChangeSet& orig);
00046    DtOrganizationChangeSet& operator=(const DtOrganizationChangeSet& orig);
00047 
00053    virtual void addSetSuperior(const DtString& subordinateName, 
00054       const DtString& superiorName, int designator = 0);
00055 
00062    virtual void addSetSuperiorToForce(const DtString& subordinateName, 
00063       int designator = 0);
00064 
00065    virtual const DtSetSuperiorList& setSuperiorCommands() const;
00066    virtual const DtSetSuperiorToForceList& setSuperiorToForceCommands() const;
00067 
00069    virtual void clear();
00070 
00071 protected:
00075    virtual void removeItemsWithSubordiate(const DtString& subordinateName);
00076 
00077 protected:
00079    DtSetSuperiorList mySetSuperiorList;
00081    DtSetSuperiorToForceList mySetSuperiorToForceList;
00082 };
00083 
00084 #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)