33#define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger::get(), s)
35#define DEBUG_SYNCH_FILES
46int synch_files_tentacle::execute()
52This program needs two parameters:\n\
53a directory for the source root and one for the target root.\n\
54Optionally, a third parameter may specify a starting point within the\n\
56Further, if fourth or more parameters are found, they are taken to be\n\
57files to include; only they will be transferred.\n"), ALWAYS_PRINT);
79 target_dir, includes, source_start);
81 if (returned != common::OKAY) {
The application_shell is a base object for console programs.
virtual int execute()=0
< retrieves the command line from the /proc hierarchy on linux.
application_shell()
constructs an application_shell to serve as the root of the program.
Provides a dynamically resizable ASCII character string.
Outcomes describe the state of completion for an operation.
static void alert_message(const char *info, const char *title="Alert Message")
shows the message in "info", with an optional "title" on the message.
@ COMPARE_SIZE_AND_TIME
uses size and time to see differences.
static const char * outcome_name(const basis::outcome &to_name)
static basis::outcome copy_hierarchy(int transfer_mode, const basis::astring &source_dir, const basis::astring &target_dir, const structures::string_array &includes, const basis::astring &source_start=basis::astring::empty_string())
copies a directory hierarchy starting at "source_dir" into "target_dir".
An array of strings with some additional helpful methods.
#define DEFINE_CLASS_NAME(objname)
Defines the name of a class by providing a couple standard methods.
#define FUNCDEF(func_in)
FUNCDEF sets the name of a function (and plugs it into the callstack).
Provides macros that implement the 'main' program of an application.
#define HOOPLE_MAIN(obj_name, obj_args)
options that should work for most unix and linux apps.
Implements an application lock to ensure only one is running at once.
The guards collection helps in testing preconditions and reporting errors.
A platform independent way to obtain the timestamp of a file.
A logger that sends to the console screen using the standard output device.
A dynamic container class that holds any kind of object via pointers.