VR-Forces 4.0.4 Class Documentation
include/makSettingsManager/settingsObjectFactory.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: settingsObjectFactory.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 // \file settingsObjectFactory.h
00010 // \brief Factory for DtSettingsObjects.
00011 
00012 #ifndef settingsObjectFactory_H_
00013 #define settingsObjectFactory_H_
00014 
00015 #include "tdbutil/stringKeyFactory.h"
00016 
00017 class DtSettingsObject;
00018 class DtSettingsObjectFactory;
00019 
00020 // Structure of data passed to the DtSettingsObject constructor.
00021 struct DtSettingsObjectCreationParams
00022 {
00023    std::string name;
00024 };
00025 
00028 
00029 #include "makSettingsManager/makSettingsManagerDefines.h"
00030 class DT_DLL_makSettingsManager DtSettingsObjectFactory : 
00031    public DtStringKeyFactoryWithParam<DtSettingsObject, 
00032    DtSettingsObjectCreationParams&>
00033 {
00034 public:
00035    // Constructor
00036    DtSettingsObjectFactory();
00037    
00038    // Destructor
00039    virtual ~DtSettingsObjectFactory();
00040 
00041    // Calls the constructor
00042    static DtSettingsObjectFactory* create();
00043 
00044 };
00045 
00046 // Function signature for the creator method for DtDtSettingsObjects
00047 typedef DtSettingsObjectFactory::DtCreatorFcn DtSettingsObjectCreatorFcn;
00048 
00049 #endif
00050 
00051 

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)