#include <fsc_nsNameMgr.h>
Definition at line 31 of file fsc_nsNameMgr.h.
Public Member Functions | |
| fsc_nsNameMgr (UInt8_t a_size, ivd_RecordIDX_t a_idx) | |
| ~fsc_nsNameMgr (void) | |
| void | ChgName (const string &a_name) |
| bool | Write2DB (UInt8_t &a_elementType, UInt8_t &a_numOfElement, ivd_RecordIDX_t &a_recordIdx, fio_Transaction &a_trans) |
| void | Dump (ostream &os) |
| string & | GetNameRef () |
Public Attributes | |
| log_CLASSID_m | |
Private Attributes | |
| fsc_nsString | m_fName |
| file name | |
Friends | |
| class | ut_fsc_nsNameMgr |
| fsc_nsNameMgr::fsc_nsNameMgr | ( | UInt8_t | a_size, | |
| ivd_RecordIDX_t | a_idx | |||
| ) |
Definition at line 38 of file fsc_nsNameMgr.cpp.
References dbg_DETAIL, log_DBG_m, log_FUNC_m, and m_fName.
00040 : m_fName(a_size, a_idx) { 00041 00042 log_FUNC_m(fsc_nsNameMgr(Int8_t, ivd_RecordIDX_t)); 00043 log_DBG_m(dbg_DETAIL, " nsElement name in DB = " << m_fName); 00044 }
| fsc_nsNameMgr::~fsc_nsNameMgr | ( | void | ) |
Definition at line 49 of file fsc_nsNameMgr.cpp.
References log_FUNC_m.
00049 { 00050 log_FUNC_m(~fsc_nsNameMgr); 00051 }
| void fsc_nsNameMgr::ChgName | ( | const string & | a_name | ) |
Definition at line 56 of file fsc_nsNameMgr.cpp.
References dbg_DETAIL, log_DBG_m, log_FUNC_m, and m_fName.
Referenced by fsc_nsElement::ChgName().
00056 { 00057 log_FUNC_m(ChgName); 00058 // if file name is empty then delete of file happened 00059 log_DBG_m(dbg_DETAIL, " nsElement name = " << a_name); 00060 if (m_fName != a_name) { 00061 m_fName = a_name; 00062 } 00063 }

| bool fsc_nsNameMgr::Write2DB | ( | UInt8_t & | a_elementType, | |
| UInt8_t & | a_numOfElement, | |||
| ivd_RecordIDX_t & | a_recordIdx, | |||
| fio_Transaction & | a_trans | |||
| ) |
Definition at line 68 of file fsc_nsNameMgr.cpp.
References m_fName, and fio_BasicString::Write2DB().
Referenced by fsc_nsElement::Write2DB().
00071 { 00072 // log_FUNC_m(Write2DB); 00073 // a_elementType = nit_NAME; 00074 00075 // 00076 // NOTE: Conversion from a reference to 8-bit value and back, because 00077 // fsc_nsString uses 16-bit value for number of elements. 00078 // 00079 ivd_VectorSize_t num(a_numOfElement); 00080 bool ret = m_fName.Write2DB(num, a_recordIdx, a_trans); 00081 a_numOfElement = (UInt8_t)num; 00082 return ret; 00083 }


| void fsc_nsNameMgr::Dump | ( | ostream & | os | ) |
Definition at line 87 of file fsc_nsNameMgr.cpp.
References cmn_HexDump(), and m_fName.
Referenced by fsc_nsElement::Dump().
00087 { 00088 os << " Name in UTF8 = '" << m_fName << "'" 00089 << ", length = " << m_fName.length() << endl 00090 << " hex dump = " << cmn_HexDump(m_fName.data(), m_fName.length(), 16, true) 00091 << endl; 00092 }


| string& fsc_nsNameMgr::GetNameRef | ( | ) | [inline] |
Definition at line 46 of file fsc_nsNameMgr.h.
Referenced by fsc_nsElement::CheckLastGen(), fsc_nsElement::GetFullPath(), and fsc_nsElement::InsertSplit().
00046 { return m_fName;};

friend class ut_fsc_nsNameMgr [friend] |
Definition at line 32 of file fsc_nsNameMgr.h.
Definition at line 46 of file fsc_nsNameMgr.h.
fsc_nsString fsc_nsNameMgr::m_fName [private] |
file name
Definition at line 50 of file fsc_nsNameMgr.h.
Referenced by ChgName(), Dump(), fsc_nsNameMgr(), and Write2DB().
1.5.6