VR-Forces 4.0.4 Class Documentation
include/vrvDrawControl/DtAttributeGroupTemplateObject.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2006 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtAttributeGroupTemplateObject.h,v $ $Revision: 1.3 $ $State: Exp $
00007 ******************************************************************************/
00008 #pragma once
00009 
00015 
00016 #include <map>
00017 #include <list>
00018 
00019 #include <vlutil/vlString.h>
00020 
00021 #include <vrvDrawControl/vrvDrawControlDefines.h>
00022 
00023 #include <vrvDrawControl/DtDrawControlObject.h>
00024 #include <vrvDrawControl/DtAttributeTemplateObject.h>
00025 
00026 namespace vrvControlToolkit
00027 {
00028 
00030    typedef std::list<DtAttributeTemplateObject*> DtVdcAttributeTemplateList;
00031 
00034    typedef std::map<DtString, DtAttributeTemplateObject*> 
00035       DtVdcAttributeTemplateMap;
00036 
00043    class DT_DLL_VRVDRAWCONTROL DtAttributeGroupTemplateObject : public DtDrawControlObject
00044    {
00045    public:
00053       DtAttributeGroupTemplateObject(DtExerciseConn* exConn, unsigned id,  
00054          const DtString& name);
00055 
00056       // \brief Virtual destructor
00057       virtual ~DtAttributeGroupTemplateObject();
00058 
00059    private:
00064       DtAttributeGroupTemplateObject();
00065 
00069       DtAttributeGroupTemplateObject(
00070          const DtAttributeGroupTemplateObject& orig);
00071 
00075       DtAttributeGroupTemplateObject& operator=(
00076          const DtAttributeGroupTemplateObject& rhs);
00077 
00078    public:
00084       virtual const DtString& name() const;
00085 
00097       virtual DtAttributeTemplateObject* createAttributeTemplate(const DtString& name, 
00098          DtAttributeTemplateObject::DtVdcAttributeType attType);
00099 
00111       virtual DtAttributeTemplateObject* createAttributeTemplate(const DtString& name, 
00112          double minRange, double maxRange);
00113 
00119       virtual DtVdcAttributeTemplateList& attributeTemplates();
00120 
00127       virtual DtAttributeTemplateObject* attributeTemplate(
00128          const DtString& name);
00129 
00134       virtual void update();
00135 
00136    protected:
00137       DtString myName;
00138       DtVdcAttributeTemplateMap myAttributeTemplateMap;
00139       DtVdcAttributeTemplateList myAttributeTemplateList;
00140    };
00141 }

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)