You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
184 lines
4.4 KiB
C
184 lines
4.4 KiB
C
12 years ago
|
/**
|
||
|
* \file config.h
|
||
|
* \brief CConfig
|
||
|
* \date 2012-08-18 19:25GMT
|
||
|
* \author Jan Boon (Kaetemi)
|
||
|
* CConfig
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
* Copyright (C) 2012 by authors
|
||
|
*
|
||
|
* This file is part of RYZOM CORE PIPELINE.
|
||
|
* RYZOM CORE PIPELINE is free software: you can redistribute it
|
||
|
* and/or modify it under the terms of the GNU Affero General Public
|
||
|
* License as published by the Free Software Foundation, either
|
||
|
* version 3 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* RYZOM CORE PIPELINE is distributed in the hope that it will be
|
||
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||
|
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU Affero General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Affero General Public
|
||
|
* License along with RYZOM CORE PIPELINE. If not, see
|
||
|
* <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
#ifndef PIPELINE_CONFIG_H
|
||
|
#define PIPELINE_CONFIG_H
|
||
|
#include <nel/misc/types_nl.h>
|
||
|
|
||
|
// STL includes
|
||
|
|
||
|
// NeL includes
|
||
|
#include <nel/misc/class_id.h>
|
||
|
|
||
|
// Project includes
|
||
|
#include "storage_object.h"
|
||
|
#include "storage_value.h"
|
||
|
|
||
|
namespace PIPELINE {
|
||
|
namespace MAX {
|
||
|
|
||
|
/**
|
||
|
* \brief CConfig
|
||
|
* \date 2012-08-18 19:25GMT
|
||
|
* \author Jan Boon (Kaetemi)
|
||
|
* CConfig
|
||
|
*/
|
||
|
class CConfig : public CStorageContainer
|
||
|
{
|
||
|
public:
|
||
|
CConfig();
|
||
|
virtual ~CConfig();
|
||
|
|
||
|
// inherited
|
||
|
virtual std::string getClassName();
|
||
|
virtual void toString(std::ostream &ostream, const std::string &pad = "");
|
||
|
|
||
|
protected:
|
||
|
virtual IStorageObject *createChunkById(uint16 id, bool container);
|
||
|
virtual void serialized(TStorageObjectContainer::iterator soit, bool container);
|
||
|
|
||
|
}; /* class CConfig */
|
||
|
|
||
|
/**
|
||
|
* \brief CConfigScript
|
||
|
* \date 2012-08-18 19:25GMT
|
||
|
* \author Jan Boon (Kaetemi)
|
||
|
* CConfig
|
||
|
*/
|
||
|
class CConfigScript : public CStorageContainer
|
||
|
{
|
||
|
public:
|
||
|
CConfigScript();
|
||
|
virtual ~CConfigScript();
|
||
|
|
||
|
// inherited
|
||
|
virtual std::string getClassName();
|
||
|
virtual void toString(std::ostream &ostream, const std::string &pad = "");
|
||
|
|
||
|
protected:
|
||
|
virtual IStorageObject *createChunkById(uint16 id, bool container);
|
||
|
virtual void serialized(TStorageObjectContainer::iterator soit, bool container);
|
||
|
|
||
|
}; /* class CConfigScript */
|
||
|
|
||
|
/**
|
||
|
* \brief CConfigScriptEntry
|
||
|
* \date 2012-08-18 19:25GMT
|
||
|
* \author Jan Boon (Kaetemi)
|
||
|
* CConfig
|
||
|
*/
|
||
|
class CConfigScriptEntry : public CStorageContainer
|
||
|
{
|
||
|
public:
|
||
|
CConfigScriptEntry();
|
||
|
virtual ~CConfigScriptEntry();
|
||
|
|
||
|
// inherited
|
||
|
virtual std::string getClassName();
|
||
|
virtual void toString(std::ostream &ostream, const std::string &pad = "");
|
||
|
|
||
|
protected:
|
||
|
virtual IStorageObject *createChunkById(uint16 id, bool container);
|
||
|
virtual void serialized(TStorageObjectContainer::iterator soit, bool container);
|
||
|
|
||
|
}; /* class CConfigScriptEntry */
|
||
|
|
||
|
/**
|
||
|
* \brief CConfigScriptHeader
|
||
|
* \date 2012-08-18 19:25GMT
|
||
|
* \author Jan Boon (Kaetemi)
|
||
|
* CConfigScriptHeader
|
||
|
*/
|
||
|
class CConfigScriptHeader : public IStorageObject
|
||
|
{
|
||
|
public:
|
||
|
CConfigScriptHeader();
|
||
|
virtual ~CConfigScriptHeader();
|
||
|
|
||
|
// public data
|
||
|
uint32 SuperClassID;
|
||
|
NLMISC::CClassId ClassID;
|
||
|
|
||
|
// inherited
|
||
|
virtual std::string getClassName();
|
||
|
virtual void serial(NLMISC::IStream &stream);
|
||
|
virtual void toString(std::ostream &ostream, const std::string &pad = "");
|
||
|
|
||
|
}; /* class CConfigScriptHeader */
|
||
|
|
||
|
/**
|
||
|
* \brief CConfigScriptMetaContainer
|
||
|
* \date 2012-08-18 19:25GMT
|
||
|
* \author Jan Boon (Kaetemi)
|
||
|
* CConfigScriptMetaContainer
|
||
|
* This is totally hilarious.
|
||
|
*/
|
||
|
class CConfigScriptMetaContainer : public CStorageContainer
|
||
|
{
|
||
|
public:
|
||
|
CConfigScriptMetaContainer();
|
||
|
virtual ~CConfigScriptMetaContainer();
|
||
|
|
||
|
// inherited
|
||
|
virtual std::string getClassName();
|
||
|
virtual void toString(std::ostream &ostream, const std::string &pad = "");
|
||
|
|
||
|
protected:
|
||
|
virtual IStorageObject *createChunkById(uint16 id, bool container);
|
||
|
virtual void serialized(TStorageObjectContainer::iterator soit, bool container);
|
||
|
|
||
|
}; /* class CConfigScriptMetaContainer */
|
||
|
|
||
|
/**
|
||
|
* \brief CConfigScriptMetaString
|
||
|
* \date 2012-08-18 19:25GMT
|
||
|
* \author Jan Boon (Kaetemi)
|
||
|
* CConfigScriptMetaString
|
||
|
*/
|
||
|
class CConfigScriptMetaString : public IStorageObject
|
||
|
{
|
||
|
public:
|
||
|
CConfigScriptMetaString();
|
||
|
virtual ~CConfigScriptMetaString();
|
||
|
|
||
|
// public data
|
||
|
std::string Value;
|
||
|
|
||
|
// inherited
|
||
|
virtual std::string getClassName();
|
||
|
virtual void serial(NLMISC::IStream &stream);
|
||
|
virtual void toString(std::ostream &ostream, const std::string &pad = "");
|
||
|
|
||
|
}; /* class CConfigScriptMetaString */
|
||
|
|
||
|
} /* namespace MAX */
|
||
|
} /* namespace PIPELINE */
|
||
|
|
||
|
#endif /* #ifndef PIPELINE_CONFIG_H */
|
||
|
|
||
|
/* end of file */
|