inlib
1.2.0
|
Public Member Functions | |
TDirectory (ifile &a_file) | |
virtual | ~TDirectory () |
bool | stream (buffer &a_buffer) |
Static Public Member Functions | |
static const std::string & | store_class () |
Protected Member Functions | |
TDirectory (const TDirectory &a_from) | |
TDirectory & | operator= (const TDirectory &) |
void | initialize () |
inlib::rroot::TDirectory::TDirectory | ( | ifile & | a_file | ) | [inline] |
Definition at line 945 of file streamers.
:inlib::rroot::directory(a_file) {}
virtual inlib::rroot::TDirectory::~TDirectory | ( | ) | [inline, virtual] |
inlib::rroot::TDirectory::TDirectory | ( | const TDirectory & | a_from | ) | [inline, protected] |
Definition at line 950 of file streamers.
: inlib::rroot::directory(a_from) {}
void inlib::rroot::TDirectory::initialize | ( | ) | [inline, protected] |
Definition at line 998 of file streamers.
{ // Initialise directory to defaults : // If directory is created via default ctor (when dir is read from file) // don't add it here to the directory since its name is not yet known. // It will be added to the directory in TKey::ReadObj(). m_date_C = 0;//m_date_C.set(); m_date_M = 0;//m_date_M.set(); m_nbytes_keys = 0; m_seek_directory = 0; m_seek_parent = 0; m_seek_keys = 0; }
TDirectory& inlib::rroot::TDirectory::operator= | ( | const TDirectory & | ) | [inline, protected] |
static const std::string& inlib::rroot::TDirectory::store_class | ( | ) | [inline, static] |
bool inlib::rroot::TDirectory::stream | ( | buffer & | a_buffer | ) | [inline] |
Definition at line 955 of file streamers.
{ initialize(); short version; if(!a_buffer.read_version(version)) return false; unsigned int date; if(!a_buffer.read(date)) return false; //m_date_C.setDate(date); if(!a_buffer.read(date)) return false; //m_date_M.setDate(date); if(!a_buffer.read(m_nbytes_keys)) return false; if(!a_buffer.read(m_nbytes_name)) return false; if(version>1000) { if(!a_buffer.read(m_seek_directory)) return false; if(!a_buffer.read(m_seek_parent)) return false; if(!a_buffer.read(m_seek_keys)) return false; } else { {seek32 i; if(!a_buffer.read(i)) return false; m_seek_directory = i;} {seek32 i; if(!a_buffer.read(i)) return false; m_seek_parent = i;} {seek32 i; if(!a_buffer.read(i)) return false; m_seek_keys = i;} } //short v = version%1000; if (m_seek_keys) { uint32 n; if(!read_keys(n)) { a_buffer.out() << "inlib::rroot::TDirectory::stream :" << " cannot read keys." << std::endl; return false; } } return true; }