VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtDeSettingsManager.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtDeSettingsManager.h,v $ $Revision: 1.10 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 #include <vrvCore/vrvCore.h>
00015 #include <vrvUtil/DtVirtualBaseClass.h>
00016 
00017 #include <map>
00018 #include <string>
00019 
00020 namespace makVrv
00021 {
00022 
00023    class DtDe;
00024    class DtDeSettings;
00025 
00028    class DT_DLL_VRVCORE DtDeSettingsManager : public DtVirtualBaseClass
00029    {
00030    public:
00032       static DtDeSettingsManager& instance(DtDe& de);
00033 
00035       virtual ~DtDeSettingsManager();
00036 
00038       void createSettings(const std::string& settingsType, const std::string& settingsExt);
00039 
00043       DtDeSettings* findSettings(const std::string& settingsType);
00044 
00049       DtDeSettings* findSettingsByExtension(const std::string& settingsEx);
00050 
00056       void registerSettings(DtDeSettings* settings);
00057 
00058    protected:
00059 
00061       DtDeSettingsManager(DtDe&);
00062 
00063       typedef std::map<std::string,DtDeSettings*> SettingsMap;
00064       typedef std::map<std::string, std::string> SettingsToFileMap;
00065 
00066       DtDe& myDe;
00067       SettingsMap mySettings;
00068    };
00069 }

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)