Return Type | Function name | Arguments |
---|---|---|
void | hzPMapS::DeltaOpen | (void) |
Declared and defined in file: hzTmplMapS.h
Function Logic:
Function body:
void hzPMapS::DeltaOpen (void) { std::ifstream is ; struct stat fs ; KEY key ; OBJ obj ; if (lstat(*m_path, &fs) == 0) { if (fs.st_size) { is.open(*m_path) ; for (; is.tellg() < fs.st_size ;) { is >> key ; if (is.fail()) is.clear() ; if (is.tellg() == fs.st_size) break ; is >> obj ; if (is.fail()) is.clear() ; if (is.tellg() == fs.st_size) threadLog("B: At EOF\n") ; if (!key) continue ; if (!obj) continue ; m_map.Insert(key, obj) ; } is.close() ; } } m_bOpen = true ; m_os.open(*m_path, std::ios::app) ; }