ucommon
7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
![]() ![]() |
Go to the source code of this file.
Enumerations | |
enum | { d_text, d_file, d_scan, d_init } |
Functions | |
static void | report (const char *path, int code) |
static bool | encode (const char *path, FILE *fp, size_t offset=0) |
static void | encodestream (void) |
static void | header (void) |
static void | encodefile (const char *path, const char *name) |
static void | final (void) |
static void | process (void) |
static void | binarydecode (FILE *fp, const char *path) |
static void | streamdecode (FILE *fp, const char *path) |
static void | scan (string_t path, string_t prefix) |
int | main (int argc, char **argv) |
Variables | |
static shell::flagopt | helpflag ('h',"--help", _TEXT("display this list")) |
static shell::flagopt | althelp ('?', NULL, NULL) |
static shell::stringopt | tag ('t', "--tag", _TEXT("tag annotation"), "text", "") |
static shell::stringopt | algo ('c', "--cipher", _TEXT("cipher method (aes256)"), "method", "aes256") |
static shell::flagopt | decode ('d', "--decode", _TEXT("decode archive")) |
static shell::stringopt | hash ('h', "--digest", _TEXT("digest method (sha)"), "method", "sha") |
static shell::flagopt | noheader ('n', "--no-header", _TEXT("without wrapper")) |
static shell::stringopt | out ('o', "--output", _TEXT("output file"), "filename", "-") |
static shell::flagopt | quiet ('q', "--quiet", _TEXT("quiet operation")) |
static shell::flagopt | recursive ('R', "--recursive", _TEXT("recursive directory scan")) |
static shell::flagopt | altrecursive ('r', NULL, NULL) |
static shell::flagopt | hidden ('s', "--hidden", _TEXT("include hidden files")) |
static shell::flagopt | yes ('y', "--overwrite", _TEXT("overwrite existing files")) |
static bool | binary = false |
static int | exit_code = 0 |
static const char * | argv0 = "car" |
static uint8_t | frame [48] |
static uint8_t | cbuf [48] |
static cipher_t | cipher |
static FILE * | output = stdout |
static enum { ... } | decoder = d_init |
static unsigned | frames |
|
static |
Definition at line 302 of file car.cpp.
References ucommon::_TEXT(), argv0, buffer, ucommon::eq(), ucommon::shell::errexit(), exit_code, frame, process(), and report().
Referenced by main().
|
static |
Definition at line 101 of file car.cpp.
References ucommon::String::b64encode(), binary, buffer, cbuf, cipher, frame, output, ucommon::Cipher::put(), and report().
Referenced by encodefile(), and encodestream().
|
static |
Definition at line 173 of file car.cpp.
References ucommon::String::b64encode(), binary, buffer, cbuf, cipher, encode(), frame, ucommon::fsys::info(), lsb_setlong(), output, ucommon::Cipher::put(), report(), and ucommon::String::set().
|
static |
Definition at line 141 of file car.cpp.
References binary, encode(), frame, ucommon::shell::input(), ucommon::is(), ucommon::fsys::is_tty(), noheader, and output.
Referenced by main().
|
static |
|
static |
Definition at line 161 of file car.cpp.
References binary, frame, output, ucommon::String::set(), and tag.
Referenced by ost::MIMEMultipart::getHeaders(), and main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 416 of file car.cpp.
References ucommon::_TEXT(), algo, althelp, argv0, ucommon::shell::argv0(), binary, binarydecode(), ucommon::shell::bind(), cbuf, cipher, decode, ucommon::Cipher::DECRYPT, encodefile(), encodestream(), ucommon::Cipher::ENCRYPT, ucommon::eq(), ucommon::eq_case(), ucommon::shell::errexit(), exit_code, ucommon::shell::getpass(), ucommon::Cipher::has(), ucommon::Digest::has(), hash, header(), ucommon::shell::help(), helpflag, ucommon::secure::init(), ucommon::is(), ucommon::fsys::is_dir(), noheader, out, output, scan(), ucommon::Cipher::set(), ucommon::str(), streamdecode(), and tag.
|
static |
Definition at line 232 of file car.cpp.
References ucommon::_TEXT(), argv0, cbuf, cipher, ucommon::dir::create(), d_file, d_init, d_scan, d_text, decoder, ucommon::shell::errexit(), frame, frames, ucommon::shell::inkey(), ucommon::is(), ucommon::fsys::is_dir(), ucommon::fsys::is_file(), lsb_getlong(), output, ucommon::Cipher::put(), quiet, ucommon::str(), and yes.
Referenced by binarydecode(), ost::Serial::operator=(), and streamdecode().
|
static |
Definition at line 47 of file car.cpp.
References ucommon::_TEXT(), argv0, ucommon::shell::errexit(), exit_code, and ucommon::shell::printf().
Referenced by binarydecode(), encode(), encodefile(), scan(), and streamdecode().
Definition at line 384 of file car.cpp.
References altrecursive, encodefile(), hidden, ucommon::is(), ucommon::fsys::is_dir(), prefix, ucommon::dir::read(), recursive, report(), and ucommon::str().
Referenced by main().
|
static |
Definition at line 335 of file car.cpp.
References ucommon::_TEXT(), argv0, ucommon::String::b64decode(), buffer, ucommon::eq(), ucommon::shell::errexit(), exit_code, frame, process(), and report().
Referenced by main().
|
static |
Referenced by main().
|
static |
Referenced by main().
|
static |
Referenced by scan().
|
static |
Definition at line 40 of file car.cpp.
Referenced by binarydecode(), main(), process(), report(), and streamdecode().
|
static |
Definition at line 38 of file car.cpp.
Referenced by ucommon::String::crc16(), ucommon::String::crc24(), encode(), encodefile(), encodestream(), header(), ucommon::String::hex(), ucommon::String::hexdump(), ucommon::String::hexpack(), and main().
|
static |
Definition at line 41 of file car.cpp.
Referenced by encode(), encodefile(), final(), main(), process(), ost::IPV4Cidr::set(), and ucommon::cidr::set().
|
static |
Definition at line 42 of file car.cpp.
Referenced by encode(), encodefile(), final(), ucommon::Cipher::has(), ucommon::Cipher::Key::Key(), main(), process(), and ucommon::Cipher::Key::set().
|
static |
Referenced by main().
enum { ... } decoder |
Referenced by ucommon::String::b64count(), ucommon::String::b64decode(), final(), and process().
|
static |
Definition at line 39 of file car.cpp.
Referenced by binarydecode(), main(), ucommon::shell::release(), report(), and streamdecode().
|
static |
Definition at line 41 of file car.cpp.
Referenced by binarydecode(), encode(), encodefile(), encodestream(), final(), header(), process(), and streamdecode().
|
static |
Referenced by main(), and sha2_begin().
|
static |
Referenced by main().
|
static |
Referenced by scan().
|
static |
Referenced by encodestream(), and main().
|
static |
Referenced by ost::logger::_openFile(), ost::AppLog::AppLog(), ucommon::String::b64(), ost::MIMEMultipart::body(), ost::MIMEFormData::body(), ost::MIMEMultipart::head(), ost::MIMEItemPart::head(), ost::MIMEFormData::head(), ucommon::String::hex(), ucommon::String::hex2bin(), ost::AppLog::logFileName(), main(), ost::AppLog::open(), ucommon::typeref< const uint8_t * >::operator+(), ucommon::operator<<(), ucommon::ObjectPager::pop(), ucommon::StringPager::pop(), ucommon::fsys::prefix(), ucommon::_stream_operators::print(), ucommon::putline(), ucommon::Socket::readline(), ost::SerialService::run(), ucommon::utf8::udup(), and ucommon::utf8::wdup().
|
static |
Definition at line 43 of file car.cpp.
Referenced by encode(), encodefile(), encodestream(), final(), ucommon::UString::get(), header(), main(), ucommon::pipestream::open(), and process().
|
static |
Referenced by process().
|
static |
Referenced by scan().
|
static |
|
static |
Referenced by process().