|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLMISC::CSheetId Class ReferenceCSheetId.
More...
#include <sheet_id.h>
List of all members.
Public Methods |
| CSheetId (uint32 sheetRef=0) |
| Constructor. More...
|
| CSheetId (const std::string &sheetName) |
| Constructor. More...
|
bool | build (const std::string &sheetName) |
uint32 | asInt () const |
| Return the **whole** sheet id (id+type). More...
|
uint8 | getType () const |
| Return the sheet type (sub part of the sheetid). More...
|
uint8 | getShortId () const |
| Return the sheet sub id (sub part of the sheetid). More...
|
CSheetId & | operator= (const CSheetId &sheetId) |
| Operator=. More...
|
CSheetId & | operator= (const std::string &sheetName) |
| Operator=. More...
|
CSheetId & | operator= (uint32 sheetRef) |
| Operator=. More...
|
bool | operator< (const CSheetId &sheetRef) const |
| Operator<. More...
|
bool | operator== (const CSheetId &sheetRef) const |
| Operator==. More...
|
bool | operator!= (const CSheetId &sheetRef) const |
| Operator !=. More...
|
std::string | toString () const |
| Return the sheet id as a string If the sheet id is not found, the returned string is "<Sheet d not found in sheet_id.bin>" with the id in d. More...
|
void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
| Serial. More...
|
Static Public Methods |
void | init (bool removeUnknownSheet=true) |
| Load the association sheet ref / sheet name. More...
|
void | display () |
| Display the list of valid sheet ids with their associated file names if (type != -1) then restrict list to given type. More...
|
void | display (uint8 type) |
void | buildIdVector (std::vector< CSheetId > &result) |
| Generate a vector of all the sheet ids of a given type This operation is non-destructive, the new entries are appended to the result vector note: fileExtension *not* include the '.' eg "bla" and *not* ".bla". More...
|
void | buildIdVector (std::vector< CSheetId > &result, uint8 type) |
void | buildIdVector (std::vector< CSheetId > &result, std::vector< std::string > &resultFilenames, uint8 type) |
void | buildIdVector (std::vector< CSheetId > &result, const std::string &fileExtension) |
void | buildIdVector (std::vector< CSheetId > &result, std::vector< std::string > &resultFilenames, const std::string &fileExtension) |
const std::string & | fileExtensionFromType (uint8 type) |
| Convert between file extensions and numeric sheet types note: fileExtension *not* include the '.' eg "bla" and *not* ".bla". More...
|
uint32 | typeFromFileExtension (const std::string &fileExtension) |
Static Public Attributes |
const CSheetId | Unknown |
| Unknow CSheetId is similar as an NULL pointer. More...
|
Static Private Methods |
void | loadSheetId () |
void | cbFileChange (const std::string &filename) |
Private Attributes |
TSheetId | _Id |
Static Private Attributes |
std::map< uint32, std::string > | _SheetIdToName |
| associate sheet id and sheet name. More...
|
std::map< std::string, uint32 > | _SheetNameToId |
std::vector< std::string > | _FileExtensions |
bool | _Initialised = false |
bool | _RemoveUnknownSheet = true |
Detailed Description
CSheetId.
-
Author:
-
Stephane Coutelas , Nevrax France
-
Date:
-
2002
Definition at line 46 of file sheet_id.h.
Constructor & Destructor Documentation
NLMISC::CSheetId::CSheetId |
( |
uint32 |
sheetRef = 0 |
) |
[inline, explicit] |
|
NLMISC::CSheetId::CSheetId |
( |
const std::string & |
sheetName |
) |
[explicit] |
|
Member Function Documentation
uint32 NLMISC::CSheetId::asInt |
( |
|
) |
const [inline] |
|
bool NLMISC::CSheetId::build |
( |
const std::string & |
sheetName |
) |
|
|
void NLMISC::CSheetId::buildIdVector |
( |
std::vector< CSheetId > & |
result, |
|
|
std::vector< std::string > & |
resultFilenames, |
|
|
const std::string & |
fileExtension |
|
) |
[static] |
|
void NLMISC::CSheetId::buildIdVector |
( |
std::vector< CSheetId > & |
result, |
|
|
const std::string & |
fileExtension |
|
) |
[static] |
|
void NLMISC::CSheetId::buildIdVector |
( |
std::vector< CSheetId > & |
result, |
|
|
std::vector< std::string > & |
resultFilenames, |
|
|
uint8 |
type |
|
) |
[static] |
|
void NLMISC::CSheetId::buildIdVector |
( |
std::vector< CSheetId > & |
result, |
|
|
uint8 |
type |
|
) |
[static] |
|
void NLMISC::CSheetId::buildIdVector |
( |
std::vector< CSheetId > & |
result |
) |
[static] |
|
void NLMISC::CSheetId::cbFileChange |
( |
const std::string & |
filename |
) |
[static, private] |
|
void NLMISC::CSheetId::display |
( |
uint8 |
type |
) |
[static] |
|
void NLMISC::CSheetId::display |
( |
|
) |
[static] |
|
const std::string & NLMISC::CSheetId::fileExtensionFromType |
( |
uint8 |
type |
) |
[static] |
|
uint8 NLMISC::CSheetId::getShortId |
( |
|
) |
const [inline] |
|
uint8 NLMISC::CSheetId::getType |
( |
void |
|
) |
const [inline] |
|
void NLMISC::CSheetId::init |
( |
bool |
removeUnknownSheet = true |
) |
[static] |
|
void NLMISC::CSheetId::loadSheetId |
( |
|
) |
[static, private] |
|
bool NLMISC::CSheetId::operator!= |
( |
const CSheetId & |
sheetRef |
) |
const [inline] |
|
bool NLMISC::CSheetId::operator< |
( |
const CSheetId & |
sheetRef |
) |
const |
|
CSheetId & NLMISC::CSheetId::operator= |
( |
uint32 |
sheetRef |
) |
|
|
CSheetId & NLMISC::CSheetId::operator= |
( |
const std::string & |
sheetName |
) |
|
|
CSheetId & NLMISC::CSheetId::operator= |
( |
const CSheetId & |
sheetId |
) |
|
|
bool NLMISC::CSheetId::operator== |
( |
const CSheetId & |
sheetRef |
) |
const [inline] |
|
string NLMISC::CSheetId::toString |
( |
|
) |
const |
|
uint32 NLMISC::CSheetId::typeFromFileExtension |
( |
const std::string & |
fileExtension |
) |
[static] |
|
Member Data Documentation
vector< std::string > NLMISC::CSheetId::_FileExtensions [static, private]
|
|
TSheetId NLMISC::CSheetId::_Id [private]
|
|
|
Definition at line 172 of file sheet_id.h.
Referenced by asInt, build, CSheetId, getShortId, getType, operator!=, operator<, operator=, operator==, serial, and toString. |
bool NLMISC::CSheetId::_Initialised = false [static, private]
|
|
bool NLMISC::CSheetId::_RemoveUnknownSheet = true [static, private]
|
|
map< uint32, std::string > NLMISC::CSheetId::_SheetIdToName [static, private]
|
|
map< std::string, uint32 > NLMISC::CSheetId::_SheetNameToId [static, private]
|
|
const CSheetId NLMISC::CSheetId::Unknown [static]
|
|
The documentation for this class was generated from the following files:
|
|