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.
39 lines
618 B
C++
39 lines
618 B
C++
5 years ago
|
/** \file cdb.cpp
|
||
|
*
|
||
3 years ago
|
* $Id$
|
||
5 years ago
|
*/
|
||
|
|
||
|
|
||
|
|
||
|
//#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;
|
||
|
}
|