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

ReposUI Class Reference

#include <ReposUI.H>

List of all members.

Public Types

enum  RootLoc { VESTA, VESTAWORK, NOWHERE }

Static Public Member Functions

static bool qualified (const Text &name) throw ()
static Text qualify (const Text &name, const Text &dir) throw ()
static Text canonicalize (const Text &name) throw (VestaConfig::failure, ReposUI::failure)
static Text canonicalize (const Text &name, const Text &root) throw (VestaConfig::failure, ReposUI::failure)
static void split (const Text &name, Text &par, Text &arc, const Text &errtext) throw (failure)
static Text stripRoot (const Text &name, RootLoc &loc) throw (VestaConfig::failure)
static Text stripSpecificRoot (const Text &name, RootLoc which_root, bool require_canonical=false) throw (ReposUI::failure, VestaConfig::failure)
static VestaSourcefilenameToVS (Text name) throw (failure, VestaConfig::failure, SRPC::failure)
static VestaSourcefilenameToVS (Text name, Text host, Text port) throw (failure, VestaConfig::failure, SRPC::failure)
static VestaSourcefilenameToVS (Text name, Text hostport) throw (failure, VestaConfig::failure, SRPC::failure)
static VestaSourcefilenameToMasterVS (Text name, Text hints="") throw (failure, VestaConfig::failure, SRPC::failure)
static VestaSourcefilenameToRealVS (Text name, Text hints="") throw (failure, VestaConfig::failure, SRPC::failure)
static Text vsToFilename (VestaSource *vs) throw (failure, VestaConfig::failure, SRPC::failure)
static VestaSourcelookupCreatePath (Text root_name, Text pathname, Text hints="") throw (failure, VestaConfig::failure, SRPC::failure)
static Text getMasterHintDir (VestaSource *vs_master, const Text &cname) throw (failure, SRPC::failure)
static long highver (VestaSource *vs, Text hints="", Text path="") throw (failure, SRPC::failure)
static Text uniquify (VestaSource *vs, const Text &prefix) throw (failure, SRPC::failure)
static bool changed (VestaSource *vs, time_t since) throw (failure, SRPC::failure)
static void cleanup (VestaSource *vs, const Text &pattern, unsigned long maxsize, const Text &prefix) throw (failure, SRPC::failure)
static const Text errorCodeText (VestaSource::errorCode) throw (failure)
static Text getMessage (const Text &descripton, const Text &in_description="", const char *in_message=0) throw (failure, FS::Failure)
static Text prevVersion (VestaSource *vs, Text hints="") throw (failure, SRPC::failure)

Classes

class  failure


Member Enumeration Documentation

enum ReposUI::RootLoc
 

Enumeration values:
VESTA 
VESTAWORK 
NOWHERE 

Definition at line 94 of file ReposUI.H.


Member Function Documentation

Text ReposUI::canonicalize const Text name,
const Text root
throw (VestaConfig::failure, ReposUI::failure) [static]
 

Definition at line 167 of file ReposUI.C.

References Text::Empty(), VESTA, and VESTAWORK.

Text ReposUI::canonicalize const Text name  )  throw (VestaConfig::failure, ReposUI::failure) [static]
 

Definition at line 150 of file ReposUI.C.

References Text::Empty(), VESTA, and VESTAWORK.

Referenced by commandLineParsing(), doit(), Interpret(), main(), and process().

bool ReposUI::changed VestaSource vs,
time_t  since
throw (failure, SRPC::failure) [static]
 

Definition at line 777 of file ReposUI.C.

References changed_closure::changed, errorCodeText(), VRErrorCode::ok, changed_closure::since, and changed_closure::vs.

Referenced by main().

void ReposUI::cleanup VestaSource vs,
const Text pattern,
unsigned long  maxsize,
const Text prefix
throw (failure, SRPC::failure) [static]
 

Definition at line 862 of file ReposUI.C.

References Sequence< Elem, elem_ptrfree >::addhi(), errorCodeText(), Text::Length(), VestaSource::list(), cleanup_closure::maxsize, NEW, VRErrorCode::ok, cleanup_closure::pattern, cleanup_closure::prefix, and cleanup_closure::vs.

Referenced by main().

const Text ReposUI::errorCodeText VestaSource::errorCode   )  throw (failure) [static]
 

Definition at line 892 of file ReposUI.C.

References VestaSource::errorCodeString(), VRErrorCode::inappropriateOp, VRErrorCode::invalidArgs, VRErrorCode::isADirectory, VRErrorCode::longIdOverflow, VRErrorCode::nameInUse, VRErrorCode::nameTooLong, VRErrorCode::noPermission, VRErrorCode::notADirectory, VRErrorCode::notFound, VRErrorCode::notMaster, VRErrorCode::ok, VRErrorCode::outOfSpace, and VRErrorCode::rpcFailure.

Referenced by changed(), cleanup(), filenameToVS(), fix_work_dir_attrib(), highver(), lookupCreatePath(), main(), ParseImports::RemoteModelSpace::getC(), ParseImports::RemoteModelSpace::open(), process(), ReplicateMissing(), uniquify(), VestaSourceErrorMsg(), RecursiveStats::visitDir(), visitDirEntriesCallback(), and RecursiveStats::visitFile().

VestaSource * ReposUI::filenameToMasterVS Text  name,
Text  hints = ""
throw (failure, VestaConfig::failure, SRPC::failure) [static]
 

Definition at line 555 of file ReposUI.C.

Referenced by commandLineParsing(), doit(), lookupCreatePath(), and main().

VestaSource * ReposUI::filenameToRealVS Text  name,
Text  hints = ""
throw (failure, VestaConfig::failure, SRPC::failure) [static]
 

Definition at line 562 of file ReposUI.C.

Referenced by main(), and ReplicateMissing().

VestaSource * ReposUI::filenameToVS Text  name,
Text  hostport
throw (failure, VestaConfig::failure, SRPC::failure) [static]
 

Definition at line 373 of file ReposUI.C.

References Text::FindChar(), VestaConfig::get_Text(), and Text::Sub().

VestaSource * ReposUI::filenameToVS Text  name,
Text  host,
Text  port
throw (failure, VestaConfig::failure, SRPC::failure) [static]
 

Definition at line 323 of file ReposUI.C.

References Text::cchars(), errorCodeText(), VestaSource::lookupPathname(), SRPC::failure::msg, VDirSurrogate::mutableRoot(), VestaSource::mutableRoot(), VRErrorCode::ok, VDirSurrogate::repositoryRoot(), VestaSource::repositoryRoot(), VESTA, and VESTAWORK.

VestaSource * ReposUI::filenameToVS Text  name  )  throw (failure, VestaConfig::failure, SRPC::failure) [static]
 

Definition at line 366 of file ReposUI.C.

Referenced by commandLineParsing(), doit(), fix_work_dir_attrib(), main(), process(), ReplicateMissing(), and RecursiveStats::visit().

Text ReposUI::getMasterHintDir VestaSource vs_master,
const Text cname
throw (failure, SRPC::failure) [static]
 

Definition at line 609 of file ReposUI.C.

References Text::FindCharR(), VestaSource::getParent(), VestaSource::master, VRErrorCode::notMaster, and Text::Sub().

Referenced by main().

Text ReposUI::getMessage const Text descripton,
const Text in_description = "",
const char *  in_message = 0
throw (failure, FS::Failure) [static]
 

Definition at line 987 of file ReposUI.C.

References FS::AtEOF(), Text::chars(), FS::Close(), FdCache::close(), FS::Delete(), Text::Empty(), FdCache::flush(), Text::Length(), FS::OpenForWriting(), FS::OpenReadOnly(), FS::Read(), and FS::Write().

Referenced by main().

long ReposUI::highver VestaSource vs,
Text  hints = "",
Text  path = ""
throw (failure, SRPC::failure) [static]
 

Definition at line 681 of file ReposUI.C.

References errorCodeText(), verclosure::high, verclosure::hints, VRErrorCode::ok, verclosure::parent, and verclosure::path.

Referenced by main().

VestaSource * ReposUI::lookupCreatePath Text  root_name,
Text  pathname,
Text  hints = ""
throw (failure, VestaConfig::failure, SRPC::failure) [static]
 

Definition at line 244 of file ReposUI.C.

References Text::cchars(), VestaSource::dontReplace, errorCodeText(), filenameToMasterVS(), VestaSource::insertAppendableDirectory(), VestaSource::lookup(), VestaSource::master, VRErrorCode::notFound, VRErrorCode::ok, and Text::Sub().

Referenced by main().

Text ReposUI::prevVersion VestaSource vs,
Text  hints = ""
throw (failure, SRPC::failure) [static]
 

Definition at line 1087 of file ReposUI.C.

References VestaConfig::get_Text(), VestaAttribs::getAttrib(), VestaSource::getParent(), VestaAttribs::inAttribs(), VestaConfig::is_set(), and VestaSourceSRPC::version.

Referenced by main().

bool ReposUI::qualified const Text name  )  throw () [static]
 

Definition at line 56 of file ReposUI.C.

Text ReposUI::qualify const Text name,
const Text dir
throw () [static]
 

Definition at line 65 of file ReposUI.C.

void ReposUI::split const Text name,
Text par,
Text arc,
const Text errtext
throw (failure) [static]
 

Definition at line 79 of file ReposUI.C.

Referenced by main().

Text ReposUI::stripRoot const Text name,
RootLoc loc
throw (VestaConfig::failure) [static]
 

Definition at line 183 of file ReposUI.C.

References VestaConfig::get_Text(), NOWHERE, stripPrefix(), VESTA, and VESTAWORK.

Text ReposUI::stripSpecificRoot const Text name,
RootLoc  which_root,
bool  require_canonical = false
throw (ReposUI::failure, VestaConfig::failure) [static]
 

Definition at line 206 of file ReposUI.C.

References VestaConfig::get_Text(), stripPrefix(), VESTA, and VESTAWORK.

Referenced by main(), ParseImports::RemoteModelSpace::getType(), and ParseImports::RemoteModelSpace::open().

Text ReposUI::uniquify VestaSource vs,
const Text prefix
throw (failure, SRPC::failure) [static]
 

Definition at line 704 of file ReposUI.C.

References Text::cchars(), errorCodeText(), VRErrorCode::notFound, and VRErrorCode::ok.

Referenced by main().

Text ReposUI::vsToFilename VestaSource vs  )  throw (failure, VestaConfig::failure, SRPC::failure) [static]
 

Definition at line 569 of file ReposUI.C.

References LongId::getParent(), VestaSource::host(), Text::Length(), VestaSource::longid, VDirSurrogate::LongIdLookup(), VestaSource::lookupIndex(), MAX_ARC_LEN, MutableRootLongId, NullLongId, VRErrorCode::ok, VestaSource::port(), RootLongId, and Text::Sub().

Referenced by ReplicateMissing(), RecursiveStats::visitDir(), visitDirEntriesCallback(), and RecursiveStats::visitFile().


The documentation for this class was generated from the following files:
Generated on Mon May 8 00:49:12 2006 for Vesta by  doxygen 1.4.2