PixelLightAPI  .
ConfigLoader.h
Go to the documentation of this file.
00001 /*********************************************************\
00002  *  File: ConfigLoader.h                                 *
00003  *
00004  *  Copyright (C) 2002-2011 The PixelLight Team (http://www.pixellight.org/)
00005  *
00006  *  This file is part of PixelLight.
00007  *
00008  *  PixelLight is free software: you can redistribute it and/or modify
00009  *  it under the terms of the GNU Lesser General Public License as published by
00010  *  the Free Software Foundation, either version 3 of the License, or
00011  *  (at your option) any later version.
00012  *
00013  *  PixelLight is distributed in the hope that it will be useful,
00014  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016  *  GNU Lesser General Public License for more details.
00017  *
00018  *  You should have received a copy of the GNU Lesser General Public License
00019  *  along with PixelLight. If not, see <http://www.gnu.org/licenses/>.
00020 \*********************************************************/
00021 
00022 
00023 #ifndef __PLCORE_CONFIGLOADER_H__
00024 #define __PLCORE_CONFIGLOADER_H__
00025 #pragma once
00026 
00027 
00028 //[-------------------------------------------------------]
00029 //[ Includes                                              ]
00030 //[-------------------------------------------------------]
00031 #include "PLCore/Tools/LoaderImpl.h"
00032 
00033 
00034 //[-------------------------------------------------------]
00035 //[ Namespace                                             ]
00036 //[-------------------------------------------------------]
00037 namespace PLCore {
00038 
00039 
00040 //[-------------------------------------------------------]
00041 //[ Classes                                               ]
00042 //[-------------------------------------------------------]
00043 /**
00044 *  @brief
00045 *    Abstract config loader base class
00046 *
00047 *  @note
00048 *    - Normally all save functions accept a PixelLight string 'Group'-parameter, (default setting: empty string)
00049 *      if this parameter is not empty, only configuration class instances are saved which are within the
00050 *      provided configuration class group, else ALL configuration class instances are saved.
00051 *    - Normally all save functions accept a boolean 'NoDefault'-parameter, (default setting: 'false')
00052 *      if this parameter is 'true', all variables with default values are not saved
00053 */
00054 class ConfigLoader : public LoaderImpl {
00055 
00056 
00057     //[-------------------------------------------------------]
00058     //[ Friends                                               ]
00059     //[-------------------------------------------------------]
00060     friend class Config;
00061 
00062 
00063     //[-------------------------------------------------------]
00064     //[ RTTI interface                                        ]
00065     //[-------------------------------------------------------]
00066     pl_class(PLCORE_RTTI_EXPORT, ConfigLoader, "PLCore", PLCore::LoaderImpl, "Abstract config loader base class")
00067         // Properties
00068         pl_properties
00069             pl_property("Type", "Config")
00070         pl_properties_end
00071     pl_class_end
00072 
00073 
00074     //[-------------------------------------------------------]
00075     //[ Protected functions                                   ]
00076     //[-------------------------------------------------------]
00077     protected:
00078         /**
00079         *  @brief
00080         *    Default constructor
00081         */
00082         PLCORE_API ConfigLoader();
00083 
00084         /**
00085         *  @brief
00086         *    Destructor
00087         */
00088         PLCORE_API virtual ~ConfigLoader();
00089 
00090 
00091 };
00092 
00093 
00094 //[-------------------------------------------------------]
00095 //[ Namespace                                             ]
00096 //[-------------------------------------------------------]
00097 } // PLCore
00098 
00099 
00100 #endif // __PLCORE_CONFIGLOADER_H__


PixelLight PixelLight 0.9.10-R1
Copyright (C) 2002-2011 by The PixelLight Team
Last modified Fri Dec 23 2011 15:50:51
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported