|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
load_form.h File Referencequick load of values from georges sheet (using a fast load with compacted file).
More...
#include "nel/misc/types_nl.h"
#include <map>
#include <string>
#include <vector>
#include "nel/misc/path.h"
#include "nel/misc/file.h"
#include "nel/georges/u_form_loader.h"
#include "nel/georges/u_form.h"
#include "nel/misc/sheet_id.h"
Go to the source code of this file.
Functions |
template<class T> void | loadForm (const std::string &sheetFilter, const std::string &packedFilename, std::map< NLMISC::CSheetId, T > &container, bool updatePackedSheet=true) |
| This function is used to load values from georges sheet in a quick way. More...
|
template<class T> void | loadForm (const std::vector< std::string > &sheetFilters, const std::string &packedFilename, std::map< NLMISC::CSheetId, T > &container, bool updatePackedSheet=true) |
| This function is used to load values from georges sheet in a quick way. More...
|
template<class T> void | loadForm (const std::string &sheetFilter, const std::string &packedFilename, std::map< std::string, T > &container, bool updatePackedSheet=true) |
| This function is used to load values from georges sheet in a quick way. More...
|
template<class T> void | loadForm (const std::vector< std::string > &sheetFilters, const std::string &packedFilename, std::map< std::string, T > &container, bool updatePackedSheet=true) |
| This function is used to load values from georges sheet in a quick way. More...
|
Detailed Description
quick load of values from georges sheet (using a fast load with compacted file).
-
Id:
-
load_form.h,v 1.19 2002/11/29 16:43:53 coutelas Exp
Definition in file load_form.h.
Function Documentation
template<class T> |
void loadForm |
( |
const std::vector< std::string > & |
sheetFilters, |
|
|
const std::string & |
packedFilename, |
|
|
std::map< std::string, T > & |
container, |
|
|
bool |
updatePackedSheet = true |
|
) |
|
|
|
This function is used to load values from georges sheet in a quick way.
-
Parameters:
-
sheetFilter |
a vector of string to filter the sheet in the case you need more than one filter |
packedFilename |
the name of the file that this function will generate (extension must be "packed_sheets") |
container |
the map that will be filled by this function |
Definition at line 314 of file load_form.h.
References NLMISC::COFile::close, NLMISC::CIFile::close, NLGEORGES::UFormLoader::createLoader, NLMISC::CPath::getFileList, NLMISC::CFile::getFileModificationDate, NLMISC::CTime::getLocalTime, NLMISC::IStream::getVersionException, NLGEORGES::UFormLoader::loadForm, NLMISC::CPath::lookup, nlassert, nlinfo, NLMISC::COFile::open, NLMISC::CIFile::open, NLGEORGES::UFormLoader::releaseLoader, res, NLMISC::IStream::serial, NLMISC::IStream::serialCont, NLMISC::IStream::serialVersion, NLMISC::CIFile::setCacheFileOnOpen, NLMISC::IStream::setVersionException, and NLMISC::WarningLog.
Referenced by loadForm. |
template<class T> |
void loadForm |
( |
const std::string & |
sheetFilter, |
|
|
const std::string & |
packedFilename, |
|
|
std::map< std::string, T > & |
container, |
|
|
bool |
updatePackedSheet = true |
|
) |
|
|
|
This function is used to load values from georges sheet in a quick way.
-
Parameters:
-
sheetFilter |
a string to filter the sheet (ie: ".item") |
packedFilename |
the name of the file that this function will generate (extension must be "packed_sheets") |
container |
the map that will be filled by this function |
Definition at line 300 of file load_form.h.
References loadForm. |
template<class T> |
void loadForm |
( |
const std::vector< std::string > & |
sheetFilters, |
|
|
const std::string & |
packedFilename, |
|
|
std::map< NLMISC::CSheetId, T > & |
container, |
|
|
bool |
updatePackedSheet = true |
|
) |
|
|
|
This function is used to load values from georges sheet in a quick way.
-
Parameters:
-
sheetFilter |
a vector of string to filter the sheet in the case you need more than one filter |
packedFilename |
the name of the file that this function will generate (extension must be "packed_sheets") |
container |
the map that will be filled by this function |
Definition at line 113 of file load_form.h.
References NLMISC::CSheetId::buildIdVector, NLMISC::COFile::close, NLMISC::CIFile::close, NLGEORGES::UFormLoader::createLoader, NLMISC::CFile::getFileModificationDate, NLMISC::CTime::getLocalTime, NLMISC::IStream::getVersionException, NLMISC::CSheetId::init, NLGEORGES::UFormLoader::loadForm, NLMISC::CPath::lookup, nlassert, nlinfo, NLMISC::COFile::open, NLMISC::CIFile::open, NLGEORGES::UFormLoader::releaseLoader, res, NLMISC::IStream::serial, NLMISC::IStream::serialCont, NLMISC::IStream::serialVersion, NLMISC::CIFile::setCacheFileOnOpen, NLMISC::IStream::setVersionException, and NLMISC::WarningLog. |
template<class T> |
void loadForm |
( |
const std::string & |
sheetFilter, |
|
|
const std::string & |
packedFilename, |
|
|
std::map< NLMISC::CSheetId, T > & |
container, |
|
|
bool |
updatePackedSheet = true |
|
) |
|
|
|
This function is used to load values from georges sheet in a quick way.
-
Parameters:
-
sheetFilter |
a string to filter the sheet (ie: ".item") |
packedFilename |
the name of the file that this function will generate (extension must be "packed_sheets") |
container |
the map that will be filled by this function |
Definition at line 100 of file load_form.h.
References loadForm. |
|
|