/vesta/vestasys.org/vesta/eval/98/src/Files.H File Reference

#include "EvalBasics.H"
#include "Location.H"
#include <VestaSource.H>

Include dependency graph for Files.H:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Text setSuffix (const Text &s, const Text &suff)
bool IsAbsolutePath (const Text &path)
void SplitPath (const Text &path, Text &prefix, Text &name)
bool IsDelimiter (const char c)
Text MainModel (const Text &filename, const Text &defaultmain)
bool IsDirectory (VestaSource *mRoot, Text &path, VestaSource *&vSource, VestaSource::errorCode &vSourceErr)
bool OpenSource (VestaSource *mRoot, const Text &fname, SrcLoc *loc, std::fstream *&iFile, VestaSource *&newRoot, ShortId &shortId, VestaSource *&vSource)
bool ReplicateMissing (VestaSource *root, const Text &name, VestaSource *&vSource)


Function Documentation

bool IsAbsolutePath ( const Text path  ) 

Definition at line 70 of file Files.C.

References IsDelimiter(), and path.

Referenced by ModelEC::ImportLocalModel(), LookupPath(), and ModelVC::ModelVC().

Here is the call graph for this function:

Here is the caller graph for this function:

bool IsDelimiter ( const char  c  ) 

Definition at line 38 of file Files.C.

Referenced by Canonical(), FileEC::Eval(), IsAbsolutePath(), Lookup(), LookupPath(), MainModel(), ModelPath(), setSuffix(), and SplitPath().

Here is the caller graph for this function:

bool IsDirectory ( VestaSource mRoot,
Text path,
VestaSource *&  vSource,
VestaSource::errorCode vSourceErr 
)

Definition at line 203 of file Files.C.

References VestaSource::immutableFile, LookupPath(), mRoot, VestaSource::mutableFile, VRErrorCode::ok, path, and VestaSource::type.

Referenced by FileEC::Eval().

Here is the call graph for this function:

Here is the caller graph for this function:

Text MainModel ( const Text filename,
const Text defaultmain 
)

Definition at line 162 of file Files.C.

References Canonical(), Text::cchars(), closedir(), FindExistingModel(), IsDelimiter(), Text::Length(), opendir(), PathnameSep, setSuffix(), and SplitDefaultMains().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

bool OpenSource ( VestaSource mRoot,
const Text fname,
SrcLoc loc,
std::fstream *&  iFile,
VestaSource *&  newRoot,
ShortId shortId,
VestaSource *&  vSource 
)

bool ReplicateMissing ( VestaSource root,
const Text name,
VestaSource *&  vSource 
)

Definition at line 239 of file Files.C.

References Replicator::attrAccess, Replicator::attrNew, Replicator::attrOld, autoRepl, OS::cio(), Replicator::Failure::code, OS::ThreadIO::end_err(), OS::ThreadIO::end_out(), ReposUI::errorCodeText(), ReposUI::filenameToRealVS(), ReposUI::filenameToVS(), VestaConfig::get(), VestaSource::host(), Replicator::inclStubs, LongId::isAncestorOf(), Replicator::latest, VestaSource::longid, Replicator::Failure::msg, SRPC::failure::msg, VestaConfig::failure::msg, ReposUI::failure::msg, path, VestaSource::port(), SRPC::failure::r, Replicator::revive, RootLongId, rRoot, OS::ThreadIO::start_err(), OS::ThreadIO::start_out(), and ReposUI::vsToFilename().

Referenced by LookupPath().

Here is the call graph for this function:

Here is the caller graph for this function:

Text setSuffix ( const Text s,
const Text suff 
)

Definition at line 59 of file Files.C.

References IsDelimiter(), and Text::Length().

Referenced by FileEC::Eval(), and MainModel().

Here is the call graph for this function:

Here is the caller graph for this function:

void SplitPath ( const Text path,
Text prefix,
Text name 
)

Definition at line 436 of file FS.C.

References FS::GetAbsolutePath(), IsDelimiter(), path, PathnameSep, and FS::RemoveSpecialArcs().

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

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Thu May 24 23:50:35 2007 for Vesta by  doxygen 1.5.1