Public Member Functions | Public Attributes | Private Attributes | Friends

fsc_nsNameMgr Class Reference
[G_new_group]

#include <fsc_nsNameMgr.h>

Collaboration diagram for fsc_nsNameMgr:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Definition at line 45 of file fsc_nsNameMgr.h.


Constructor & Destructor Documentation

fsc_nsNameMgr::fsc_nsNameMgr ( UInt8_t  a_size,
ivd_RecordIDX_t  a_idx 
)

Definition at line 52 of file fsc_nsNameMgr.cpp.

References dbg_DETAIL, log_DBG_m, log_FUNC_m, and m_fName.

  : m_fName(a_size, a_idx) {

    log_FUNC_m(fsc_nsNameMgr(Int8_t, ivd_RecordIDX_t));
    log_DBG_m(dbg_DETAIL, " nsElement name in DB = " << m_fName);
}

fsc_nsNameMgr::~fsc_nsNameMgr ( void   ) 

Definition at line 63 of file fsc_nsNameMgr.cpp.

References log_FUNC_m.


Member Function Documentation

void fsc_nsNameMgr::ChgName ( const string &  a_name  ) 

Definition at line 70 of file fsc_nsNameMgr.cpp.

References dbg_DETAIL, log_DBG_m, log_FUNC_m, and m_fName.

Referenced by fsc_nsElement::ChgName().

                                                {
    log_FUNC_m(ChgName);
    // if file name is empty then delete of file happened
    log_DBG_m(dbg_DETAIL, " nsElement name = " << a_name);
    if (m_fName != a_name) {
        m_fName = a_name;
    }
}

Here is the caller graph for this function:

void fsc_nsNameMgr::Dump ( ostream &  os  ) 

Definition at line 101 of file fsc_nsNameMgr.cpp.

References cmn_HexDump(), and m_fName.

Referenced by fsc_nsElement::Dump().

                                    {
    os << "  Name in UTF8 = '" << m_fName << "'"
       << ", length = " << m_fName.length() << endl
       << "   hex dump = " << cmn_HexDump(m_fName.data(), m_fName.length(), 16, true)
       << endl; 
}

Here is the call graph for this function:

Here is the caller graph for this function:

string& fsc_nsNameMgr::GetNameRef (  )  [inline]

Definition at line 60 of file fsc_nsNameMgr.h.

Referenced by fsc_nsElement::CheckLastGen(), fsc_nsElement::GetFullPath(), and fsc_nsElement::InsertSplit().

{ return m_fName;};

Here is the caller graph for this function:

bool fsc_nsNameMgr::Write2DB ( UInt8_t a_elementType,
UInt8_t a_numOfElement,
ivd_RecordIDX_t a_recordIdx,
fio_Transaction a_trans 
)

Definition at line 82 of file fsc_nsNameMgr.cpp.

References m_fName, and fio_BasicString::Write2DB().

Referenced by fsc_nsElement::Write2DB().

                                                       {
//    log_FUNC_m(Write2DB);
//    a_elementType = nit_NAME;

    //
    // NOTE: Conversion from a reference to 8-bit value and back, because
    //       fsc_nsString uses 16-bit value for number of elements.
    //
    ivd_VectorSize_t num(a_numOfElement);
    bool ret = m_fName.Write2DB(num, a_recordIdx, a_trans);
    a_numOfElement = (UInt8_t)num;
    return ret;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class ut_fsc_nsNameMgr [friend]

Definition at line 46 of file fsc_nsNameMgr.h.


Member Data Documentation

Definition at line 60 of file fsc_nsNameMgr.h.

file name

Definition at line 64 of file fsc_nsNameMgr.h.

Referenced by ChgName(), Dump(), fsc_nsNameMgr(), and Write2DB().


The documentation for this class was generated from the following files: