VR-Forces 4.0.4 Class Documentation
include/vrvCore/DtSettings.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: DtSettings.h,v $ $Revision: 1.8 $ $State: Exp $
00007 *******************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvCore/vrvCore.h>
00016 #include <list>
00017 #include <string>
00018 
00019 namespace makVrv
00020 {
00024    class DT_DLL_VRVCORE DtSettings
00025    {
00026    public:
00027 
00029       typedef std::list<DtSettings*> SettingsList;
00030 
00032       DtSettings();
00033 
00035       virtual ~DtSettings();
00036 
00038       void processCommandLine(int argc,char** argv);
00039 
00041       //TODO Refactor for filename, file writer, something.
00042       virtual void loadConfigFile(const std::string& filename) = 0;
00043 
00045       //TODO Refactor for filename, file writer, something.
00046       virtual void saveConfigFile(const std::string& filename) = 0;
00047 
00049       virtual void addSubsettings(DtSettings* subSettings);
00050 
00052       virtual void removeSubsettings(DtSettings* subSettings);
00053 
00055       const SettingsList& subSettings() const;
00056 
00058       virtual void lockSettings();
00059 
00061       virtual void unlockSettings();
00062 
00064       virtual bool isLocked() const;
00065 
00066    protected:
00067 
00069       virtual void parseCommandLine(int argc,char** argv) = 0;
00070 
00071       bool myLockFlag;
00072       SettingsList mySettings;
00073    };
00074 }
00075 

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)