39 lines
666 B
C++
39 lines
666 B
C++
/** \file cdb.cpp
|
|
*
|
|
* $Id: cdb.cpp,v 1.1 2005/09/19 09:50:17 boucher Exp $
|
|
*/
|
|
|
|
|
|
|
|
//#include "stdpch.h"
|
|
|
|
//////////////
|
|
// Includes //
|
|
//////////////
|
|
#include "cdb.h"
|
|
#include "cdb_branch.h"
|
|
#include <nel/misc/bit_mem_stream.h>
|
|
|
|
////////////////
|
|
// Namespaces //
|
|
////////////////
|
|
using namespace NLMISC;
|
|
using namespace std;
|
|
|
|
|
|
CStringMapper *ICDBNode::_DBSM = NULL;
|
|
|
|
|
|
std::string ICDBNode::getFullName()
|
|
{
|
|
std::string sTmp = _DBSM->localUnmap(_Name);
|
|
CCDBNodeBranch *pParent = getParent();
|
|
if (pParent == NULL) return sTmp;
|
|
while (pParent->getParent() != NULL)
|
|
{
|
|
sTmp = *pParent->getName() + ":" + sTmp;
|
|
pParent = pParent->getParent();
|
|
}
|
|
return sTmp;
|
|
}
|