Changed: Constify some methods
--HG-- branch : develop
This commit is contained in:
parent
b36ded52df
commit
5105252690
3 changed files with 8 additions and 8 deletions
|
@ -92,9 +92,9 @@ public:
|
||||||
void setWorldMatrix (const NLMISC::CMatrix &WM);
|
void setWorldMatrix (const NLMISC::CMatrix &WM);
|
||||||
|
|
||||||
|
|
||||||
void setName (std::string &name) { _Name = name; }
|
void setName (const std::string &name) { _Name = name; }
|
||||||
|
|
||||||
std::string getName () { return _Name; }
|
std::string getName () const { return _Name; }
|
||||||
|
|
||||||
void open (bool opened) { _Opened = opened; }
|
void open (bool opened) { _Opened = opened; }
|
||||||
bool isOpened () { return _Opened; }
|
bool isOpened () { return _Opened; }
|
||||||
|
|
|
@ -49,13 +49,13 @@ public:
|
||||||
* This file will try to open the file ligo class description file (XML) using the LigoClass as file name.
|
* This file will try to open the file ligo class description file (XML) using the LigoClass as file name.
|
||||||
* It will try first to load directly the file and then to lookup the file in NLMISC::CPath.
|
* It will try first to load directly the file and then to lookup the file in NLMISC::CPath.
|
||||||
*/
|
*/
|
||||||
bool readConfigFile (const char *fileName, bool parsePrimitiveComboContent);
|
bool readConfigFile (const std::string &fileName, bool parsePrimitiveComboContent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This file will read the file ligo class description file (XML) using the LigoClass as file name.
|
* This file will read the file ligo class description file (XML) using the LigoClass as file name.
|
||||||
* It will try first to load directly the file and then to lookup the file in NLMISC::CPath.
|
* It will try first to load directly the file and then to lookup the file in NLMISC::CPath.
|
||||||
*/
|
*/
|
||||||
bool readPrimitiveClass (const char *fileName, bool parsePrimitiveComboContent);
|
bool readPrimitiveClass (const std::string &fileName, bool parsePrimitiveComboContent);
|
||||||
|
|
||||||
bool reloadIndexFile(const std::string &indexFileName = std::string());
|
bool reloadIndexFile(const std::string &indexFileName = std::string());
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ public:
|
||||||
/// Build a standard human readable alias string
|
/// Build a standard human readable alias string
|
||||||
std::string aliasToString(uint32 fullAlias);
|
std::string aliasToString(uint32 fullAlias);
|
||||||
/// Read a standard human readable alias string
|
/// Read a standard human readable alias string
|
||||||
uint32 aliasFromString(std::string fullAlias);
|
uint32 aliasFromString(const std::string &fullAlias);
|
||||||
|
|
||||||
|
|
||||||
// Get a primitive class
|
// Get a primitive class
|
||||||
|
|
|
@ -39,7 +39,7 @@ CLigoConfig::CLigoConfig()
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
||||||
bool CLigoConfig::readConfigFile (const char *fileName, bool parsePrimitiveComboContent)
|
bool CLigoConfig::readConfigFile (const std::string &fileName, bool parsePrimitiveComboContent)
|
||||||
{
|
{
|
||||||
// The CF
|
// The CF
|
||||||
CConfigFile cf;
|
CConfigFile cf;
|
||||||
|
@ -73,7 +73,7 @@ bool CLigoConfig::readConfigFile (const char *fileName, bool parsePrimitiveCombo
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
|
||||||
bool CLigoConfig::readPrimitiveClass (const char *_fileName, bool parsePrimitiveComboContent)
|
bool CLigoConfig::readPrimitiveClass (const std::string &_fileName, bool parsePrimitiveComboContent)
|
||||||
{
|
{
|
||||||
// File exist ?
|
// File exist ?
|
||||||
string filename = _fileName;
|
string filename = _fileName;
|
||||||
|
@ -785,7 +785,7 @@ std::string CLigoConfig::aliasToString(uint32 fullAlias)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 CLigoConfig::aliasFromString(std::string fullAlias)
|
uint32 CLigoConfig::aliasFromString(const std::string &fullAlias)
|
||||||
{
|
{
|
||||||
uint32 staticPart;
|
uint32 staticPart;
|
||||||
uint32 dynPart;
|
uint32 dynPart;
|
||||||
|
|
Loading…
Reference in a new issue