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

vattrib.C File Reference

#include <Basics.H>
#include <Text.H>
#include <VestaConfig.H>
#include <VestaSource.H>
#include <VDirSurrogate.H>
#include <getopt.h>
#include "ReposUI.H"
#include <iomanip>

Go to the source code of this file.

Typedefs

typedef ActionFlags ActionFlags
typedef Action Action

Functions

void Usage ()
bool coutValueCallback (void *closure, const char *value)
bool listAllCallback (void *closure, const char *value)
bool coutHistoryCallback (void *closure, VestaSource::attribOp op, const char *name, const char *value, time_t timestamp)
void commandLineParsing (int argc, char *argv[], Sequence< Action * > &list, Text &lhost, Text &lport) throw ()
int main (int argc, char *argv[])

Variables

Text program_name
bool multiple
Text timefmt


Typedef Documentation

typedef struct Action Action
 

typedef struct ActionFlags ActionFlags
 


Function Documentation

void commandLineParsing int  argc,
char *  argv[],
Sequence< Action * > &  list,
Text lhost,
Text lport
throw ()
 

Definition at line 167 of file vattrib.C.

References ActionFlags::add_flag, Action::attrib, ReposUI::canonicalize(), ActionFlags::clear_flag, ActionFlags::compare_flag, Action::csource, ActionFlags::exist_flag, ReposUI::filenameToMasterVS(), ReposUI::filenameToVS(), Text::FindCharR(), Action::flags, VestaConfig::get(), ActionFlags::get_flag, ActionFlags::getone_flag, ActionFlags::history_flag, ActionFlags::in_flag, ActionFlags::last_modified_flag, ActionFlags::list_flag, ActionFlags::listall_flag, ActionFlags::master_flag, ReposUI::failure::msg, multiple, NEW, ActionFlags::quiet_flag, ActionFlags::remove_flag, ActionFlags::set_flag, Action::sourceVS, Text::Sub(), Action::timestamp, ActionFlags::type_flag, Usage(), and Action::value.

Referenced by main().

bool coutHistoryCallback void *  closure,
VestaSource::attribOp  op,
const char *  name,
const char *  value,
time_t  timestamp
 

Definition at line 100 of file vattrib.C.

References VestaAttribs::attribOpString(), and Text::cchars().

Referenced by main().

bool coutValueCallback void *  closure,
const char *  value
 

Definition at line 73 of file vattrib.C.

Referenced by listAllCallback(), and main().

bool listAllCallback void *  closure,
const char *  value
 

Definition at line 90 of file vattrib.C.

References coutValueCallback(), VestaAttribs::getAttrib(), listAllClosure::indent, and listAllClosure::sourceVS.

Referenced by main().

int main int  argc,
char *  argv[]
 

Definition at line 416 of file vattrib.C.

References ActionFlags::add_flag, Action::attrib, Text::cchars(), ActionFlags::clear_flag, commandLineParsing(), ActionFlags::compare_flag, coutHistoryCallback(), coutValueCallback(), Action::csource, VDirSurrogate::defaultHost(), VDirSurrogate::defaultPort(), ReposUI::errorCodeText(), ActionFlags::exist_flag, Action::flags, ActionFlags::get_flag, VestaConfig::get_Text(), VestaAttribs::getAttrib(), VestaAttribs::getAttribHistory(), ActionFlags::getone_flag, VestaAttribs::hasAttribs(), ActionFlags::history_flag, VestaSource::host(), ActionFlags::in_flag, VestaAttribs::inAttribs(), listAllClosure::indent, ActionFlags::last_modified_flag, ActionFlags::list_flag, ActionFlags::listall_flag, listAllCallback(), VestaAttribs::listAttribs(), VestaSource::master, ActionFlags::master_flag, ReposUI::failure::msg, SRPC::failure::msg, VestaConfig::failure::msg, multiple, VRErrorCode::ok, VestaAttribs::opAdd, VestaAttribs::opClear, VestaAttribs::opRemove, VestaAttribs::opSet, VestaSource::port(), ActionFlags::quiet_flag, SRPC::failure::r, Sequence< Elem, elem_ptrfree >::remlo(), ActionFlags::remove_flag, ActionFlags::set_flag, Sequence< Elem, elem_ptrfree >::size(), listAllClosure::sourceVS, Action::sourceVS, Action::timestamp, VestaSource::timestamp(), VestaSource::type, ActionFlags::type_flag, VestaSource::typeTagString(), Action::value, and VestaSource::writeAttrib().

void Usage  ) 
 

Definition at line 53 of file vattrib.C.


Variable Documentation

bool multiple
 

Definition at line 49 of file vattrib.C.

Referenced by commandLineParsing(), and main().

Text program_name
 

Definition at line 48 of file vattrib.C.

Text timefmt
 

Definition at line 50 of file vattrib.C.

Referenced by main().


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