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

Files.H File Reference

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

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().

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

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().

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

Definition at line 203 of file Files.C.

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

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().

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 autoRepl, ReposUI::errorCodeText(), ReposUI::filenameToRealVS(), ReposUI::filenameToVS(), VestaConfig::get(), VestaSource::host(), LongId::isAncestorOf(), Basics::mutex::lock(), VestaSource::longid, outputMu, VestaSource::port(), RootLongId, rRoot, Text::Sub(), Basics::mutex::unlock(), and ReposUI::vsToFilename().

Referenced by LookupPath().

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().

void SplitPath const Text path,
Text prefix,
Text name
 

Definition at line 74 of file Files.C.

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


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