Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

FS Namespace Reference


Classes

class  FdStreambuf
class  FdStreamBase
class  IFdStream
class  OFdStream
class  FdStream
class  Error
class  EndOfFile
class  DoesNotExist
class  AlreadyExists
class  Failure

Functions

void Close (AtomicFile &vaf) throw (FS::Failure)
void OpenReadOnly (const Text &fname, std::ifstream &ifs) throw (DoesNotExist, Failure)
void OpenForWriting (const Text &fname, std::ofstream &ofs) throw (Failure)
void Seek (std::istream &ifs, std::streamoff offset, std::ios::seekdir orig=std::ios::beg) throw (Failure)
void Seek (std::ostream &ofs, std::streamoff offset, std::ios::seekdir orig=std::ios::beg) throw (Failure)
std::streampos Posn (std::istream &ifs) throw (Failure)
std::streampos Posn (std::ostream &ofs) throw (Failure)
void Read (std::istream &ifs, char *buff, int n) throw (EndOfFile, Failure)
void Write (std::ostream &ofs, char *buff, int n) throw (Failure)
void Copy (std::istream &ifs, std::ostream &ofs, int len) throw (EndOfFile, Failure)
bool AtEOF (std::istream &is) throw ()
void Flush (std::ostream &ofs) throw (Failure)
void Close (std::ifstream &ifs) throw (Failure)
void Close (std::ofstream &ofs) throw (Failure)
void Close (std::fstream &fs) throw (Failure)
void Delete (const Text &fname) throw (Failure)
bool DeleteDir (const Text &dirname) throw (Failure)
bool Exists (const Text &fname) throw ()
bool IsFile (const Text &fname) throw ()
bool IsDirectory (const Text &fname) throw ()
void Touch (const Text &fname, mode_t mode=(S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH), bool allowOverwrite=true) throw (AlreadyExists, Failure)
Text TempFname (Text prefix, Text(*suffix_func)(), mode_t mode=(S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)) throw (Failure)
Text GetAbsolutePath (const Text &fname) throw (Failure)
Text RemoveSpecialArcs (const Text &fname) throw ()
void SplitPath (const Text &fname, Text &name, Text &parent) throw (Failure)
Text ParentDir (const Text &fname) throw (Failure)


Function Documentation

bool FS::AtEOF std::istream &  is  )  throw ()
 

Referenced by ReposUI::getMessage(), main(), HexReader::Next(), and Weeder::ScanLogOnce().

void FS::Close std::fstream &  fs  )  throw (Failure)
 

void FS::Close std::ofstream &  ofs  )  throw (Failure)
 

void FS::Close std::ifstream &  ifs  )  throw (Failure)
 

void FS::Close AtomicFile vaf  )  throw (FS::Failure)
 

Referenced by EmptyPKLog::CheckpointBegin(), CacheS::ChkptGraphLog(), CacheS::ChkptUsedCIs(), CacheS::CleanCacheLog(), VestaLogSeq::Close(), Weeder::CopyGLtoPending(), DoWork(), ReposUI::getMessage(), VPKFile::Lookup(), main(), VestaLogSeq::Next(), GatherWeedRoots::P(), SMultiPKFile::PrepareForRewrite(), Weeder::PruneGraphLog(), VPKFile::ReadPKFHeaderTail(), CacheS::RecoverCacheLog(), CacheS::RecoverCILog(), CacheS::RecoverDeleting(), CacheS::RecoverGraphLog(), CacheS::RecoverHitFilter(), Weeder::RecoverMiscVars(), CacheS::RecoverMPKsToWeed(), Weeder::RecoverWeeded(), CacheS::ResetWeededMPKs(), SMultiPKFile::Rewrite(), RunTool(), Weeder::ScanLogOnce(), MPKFileObj::Search(), CacheS::SetMPKsToWeed(), CacheS::SetStableDeleting(), TextVC::Sid(), Test(), TextVC::TextC::TextC(), TextVC::TextVC(), CacheS::VToSCache(), CacheS::WriteHitFilter(), Weeder::WriteMiscVars(), Weeder::WriteWeeded(), HexReader::~HexReader(), and ParseImports::LocalModelSpace::~LocalModelSpace().

void FS::Copy std::istream &  ifs,
std::ostream &  ofs,
int  len
throw (EndOfFile, Failure)
 

Referenced by ImmutableVal::Copy(), SMultiPKFile::Rewrite(), and ShipShortId().

void FS::Delete const Text fname  )  throw (Failure)
 

Referenced by CacheS::CommitChkpt(), SMultiPKFile::DeleteFile(), Weeder::DeletionPhase(), and ReposUI::getMessage().

bool FS::DeleteDir const Text dirname  )  throw (Failure)
 

Referenced by SMultiPKFile::DeleteFile().

bool FS::Exists const Text fname  )  throw ()
 

Referenced by VestaLog::checkpointBegin(), VestaLog::checkpointResume(), CacheS::CommitChkpt(), SourceOrDerived::create(), FindExistingModel(), main(), SourceOrDerived::open(), ParseImports::RemoteModelSpace::open(), Weeder::PruneGraphLog(), and Lock_Timing_Recorder::start_new_file().

void FS::Flush std::ostream &  ofs  )  throw (Failure)
 

Text FS::GetAbsolutePath const Text fname  )  throw (Failure)
 

Referenced by FS::SplitPath().

bool FS::IsDirectory const Text fname  )  throw ()
 

Referenced by SourceOrDerived::create(), FileEC::Eval(), main(), and ShipValue().

bool FS::IsFile const Text fname  )  throw ()
 

Referenced by main().

void FS::OpenForWriting const Text fname,
std::ofstream &  ofs
throw (Failure)
 

Referenced by Weeder::CopyGLtoPending(), ReposUI::getMessage(), main(), Weeder::PruneGraphLog(), and Weeder::ScanLogOnce().

void FS::OpenReadOnly const Text fname,
std::ifstream &  ifs
throw (DoesNotExist, Failure)
 

Referenced by DoWork(), ReposUI::getMessage(), HexReader::HexReader(), main(), OpenFile(), SMultiPKFile::OpenRead(), GatherWeedRoots::P(), ParseImports::LocalModelSpace::LocalModelSpace(), CacheS::RecoverDeleting(), CacheS::RecoverHitFilter(), Weeder::RecoverMiscVars(), CacheS::RecoverMPKsToWeed(), Weeder::RecoverWeeded(), Weeder::ScanLogOnce(), and MPKFileObj::Search().

Text FS::ParentDir const Text fname  )  throw (Failure)
 

std::streampos FS::Posn std::ostream &  ofs  )  throw (Failure)
 

std::streampos FS::Posn std::istream &  ifs  )  throw (Failure)
 

Referenced by SMultiPKFileRep::Header::BackPatch(), CacheEntry::Indices::ReadImmutable(), SPKFile::Lookup(), SPKFile::LookupCFPInSortedListV1(), SPKFileRep::HeaderEntry::Read(), SPKFile::Read(), SMultiPKFileRep::Header::Read(), SMultiPKFileRep::HeaderEntry::Read(), VestaVal::T::ReadImmutable(), SMultiPKFile::Rewrite(), SMultiPKFile::SeekInSortedListV1(), SPKFileRep::HeaderEntry::Write(), SPKFile::Write(), SMultiPKFileRep::Header::Write(), and SMultiPKFileRep::HeaderEntry::Write().

void FS::Read std::istream &  ifs,
char *  buff,
int  n
throw (EndOfFile, Failure)
 

Referenced by CacheEntry::Indices::Read(), CacheEntry::Indices::ReadImmutable(), CE::T::Read(), CompactFV::List::Read(), Derived::Indices::Read(), Derived::Indices::Skip(), FP::List::Read(), FS::Copy(), FV::List::Read(), ReposUI::getMessage(), SPKFile::LookupEntryV1(), main(), RootTbl::Read(), GLNode::Read(), FP::Tag::Read(), SPKFileRep::Header::Read(), SPKFileRep::HeaderEntry::Read(), SPKFile::Read(), SMultiPKFileRep::Header::Read(), SMultiPKFileRep::HeaderEntry::Read(), IntIntTblLR::Read(), Combine::XorTag::Read(), VestaVal::T::Read(), TextIO::Read(), PrefixTbl::Read(), PKPrefix::T::Read(), PKPrefix::List::Read(), Model::Read(), GraphLog::Root::Read(), GraphLog::Node::Read(), GraphLog::Entry::Read(), BitVector::Read(), SPKFile::ReadEntries(), VestaVal::T::ReadImmutable(), CacheS::RecoverDeleting(), Weeder::RecoverMiscVars(), TextIO::Skip(), PrefixTbl::Skip(), PickleC::UnpickleAtom(), PickleC::UnpickleInt16(), PickleC::UnpickleInt32(), PickleC::UnpickleInt64(), PickleC::UnpickleInt8(), PickleC::UnpickleLText(), PickleC::UnpickleText(), and PickleC::UnpicklLongId().

Text FS::RemoveSpecialArcs const Text fname  )  throw ()
 

Referenced by FS::SplitPath().

void FS::Seek std::ostream &  ofs,
std::streamoff  offset,
std::ios::seekdir  orig = std::ios::beg
throw (Failure)
 

void FS::Seek std::istream &  ifs,
std::streamoff  offset,
std::ios::seekdir  orig = std::ios::beg
throw (Failure)
 

Referenced by SPKFileRep::Header::BackPatch(), SMultiPKFileRep::Header::BackPatch(), CacheEntry::Indices::ReadImmutable(), ImmutableVal::Copy(), Derived::Indices::Skip(), SPKFile::Lookup(), SPKFile::LookupCFPInSortedListV1(), VestaVal::T::ReadImmutable(), SMultiPKFile::Rewrite(), SMultiPKFile::SeekInSortedListV1(), SMultiPKFile::SeekToPKFile(), TextIO::Skip(), and SPKFileRep::Header::SkipListV1().

void FS::SplitPath const Text fname,
Text name,
Text parent
throw (Failure)
 

Definition at line 74 of file Files.C.

Referenced by FS::ParentDir(), Imports(), ModelVC::ModelVC(), OpenSource(), and VestaShip().

Text FS::TempFname Text  prefix,
Text(*)()  suffix_func,
mode_t  mode = (S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)
throw (Failure)
 

void FS::Touch const Text fname,
mode_t  mode = (S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH),
bool  allowOverwrite = true
throw (AlreadyExists, Failure)
 

Referenced by VestaLog::checkpointBegin(), and SourceOrDerived::create().

void FS::Write std::ostream &  ofs,
char *  buff,
int  n
throw (Failure)
 

Referenced by SPKFileRep::Header::BackPatch(), SMultiPKFileRep::Header::BackPatch(), Tool_Relay::body(), CacheEntry::Indices::Write(), CE::T::Write(), CompactFV::List::Write(), Derived::Indices::Write(), FP::List::Write(), FS::Copy(), FV::List::Write(), ReposUI::getMessage(), PickleC::PickleInt16(), PickleC::PickleInt32(), PickleC::PickleInt64(), PickleC::PickleInt8(), PickleC::PickleLongId(), PickleC::PickleLText(), PickleC::PickleText(), CacheS::SetStableDeleting(), TextVC::Sid(), Test(), TextVC::TextC::TextC(), RootTbl::Write(), GLNode::Write(), FP::Tag::Write(), SPKFileRep::Header::Write(), SPKFileRep::HeaderEntry::Write(), SPKFile::Write(), SMultiPKFileRep::Header::Write(), SMultiPKFileRep::HeaderEntry::Write(), IntIntTblLR::Write(), Combine::XorTag::Write(), CacheLog::Entry::Write(), VestaVal::T::Write(), TextIO::Write(), PrefixTbl::Write(), PKPrefix::T::Write(), PKPrefix::List::Write(), Model::Write(), GraphLog::Entry::Write(), GraphLog::Root::Write(), GraphLog::Node::Write(), BitVector::Write(), SPKFile::WriteEntries(), and Weeder::WriteMiscVars().


Generated on Mon May 8 00:49:18 2006 for Vesta by  doxygen 1.4.2