Classes |
class | circular_buffer_t< T > |
| Simple circular buffer. More...
|
class | distribution_t< T > |
| Basic distribution template. More...
|
class | smart_fd |
| smart file descriptor -- only use this for low-level objects! You probably want to use nstream or iostreams instead. More...
|
class | smart_dir |
| smart directory handle. More...
|
class | AdvisoryLock |
| advisory locking object WARNING: has no effect in Windows More...
|
class | FixedBuffer< Sizer, Validator > |
| Template that supports strings of a fixed buffer size. More...
|
class | free_list_t< T > |
| Simple free list manager. More...
|
struct | utf8_char_t |
| a UTF-8 character. More...
|
class | stack_array< T, N > |
class | StringBuffer |
Modules |
| Comma Separated Values |
| Wrapper for comma-separated-value (csv) files.
|
Functions |
| smart_fd::smart_fd (int fd) throw () |
| smart_fd::~smart_fd (void) throw () |
void | smart_fd::clear (void) throw () |
bool | smart_fd::open (const char *path, int flags) |
| smart_fd::operator int (void) const throw () |
| smart_fd::operator bool (void) const throw () |
bool | smart_fd::operator! (void) const throw () |
| smart_fd::smart_fd (const smart_fd &) |
| smart_dir::~smart_dir (void) throw () |
void | smart_dir::clear (void) throw () |
| smart_dir::operator bool (void) const throw () |
void | smart_dir::open (const char *path) |
void | smart_dir::close (void) throw () |
bool | smart_dir::getNextEntry (struct dirent &entry) |
| smart_dir::smart_dir (const smart_dir &) |
| AdvisoryLock::AdvisoryLock (void) throw () |
| AdvisoryLock::~AdvisoryLock (void) throw () |
bool | AdvisoryLock::attemptLock (const char *filename, int operation) throw () |
void | AdvisoryLock::unlock (void) throw () |
Variables |
int | smart_fd::m_fd |
DIR * | smart_dir::m_dir |
int | AdvisoryLock::m_fd |
|
enum | eUUIDConstants {
eUUID_Length = 40,
eUUID_Invalid = 0
} |
const char * | generateUUID (char *buffer) |
| helper method to create a UUID.
|
|
int | GetMonthFromString (const char *month) throw () |
void | getDisplayableDateFromNetTime (long time, std::string &display) |
const char * | getDateString (long timestamp) |
void | getDateStringFromNetTime (long time, std::string &display) |
long | getNetTimeFromDateString (const char *date) throw () |
int | getWeekdayFromNetTime (long time) throw () |
const char * | GetWeekday (int weekday_index) throw () |
const char * | GetMonth (int month_index) throw () |
long | getDayBucket (long timestamp) throw () |
long | getWeekBucket (long timestamp) throw () |
long | getMonthBucket (long timestamp) throw () |
long | getYearBucket (long timestamp) throw () |
std::string | getDayBucketName (long day_bucket) |
std::string | getWeekBucketName (long week_bucket) |
std::string | getMonthBucketName (long month_bucket) |
std::string | getYearBucketName (long year_bucket) |
|
const char * | GetExtension (const char *filename) throw () |
bool | hasExtension (const char *filename, const char *extension) throw () |
| returns true if the given filename ends with the specified string (NOT case-sensitive)
|
void | GetFileRoot (const char *filename, std::string &file_root) |
void | GetParentDirectory (const char *filename, std::string &directory) throw () |
const char * | getTopDirectory (const char *filename, std::string &topDir) |
| retrieves the highest known folder for the given file.
|
std::string | getPathRelativeTo (const char *startFilename, const char *relFilename) |
| given a starting filename, and then a path relative to that, return the full path of the file.
|
void | appendPath (const char *parentDirectory, const char *nextPath, std::string &path) |
| given a starting path (directory), append another piece of the path
|
const char * | GetFilename (const char *path) throw () |
void | getTempfile (const char *path, std::string &tempfile) throw () |
void | getUserHomePath (std::string &path) |
bool | ContainsWhitespace (const char *test) throw () |
bool | doesPathExist (const char *path) throw () |
void | createEmptyFileIfDoesNotExist (const char *path) throw () |
void | walkDirectoryTree (const char *rootDirectory, const char *matchExtension, VecString &paths) |
| does a recursive directory walk, and returns all paths relative to root
|
#define | THROW_ERROR(error, args) |
| throws a (hopefully) descriptive error based on errno passed in
|
|
void | getNextToken (std::istream &stream, std::string &token, bool respect_quotes=true, bool *eof=NULL) |
void | expectToken (std::istream &stream, const char *expected) |
float | readFloat (std::istream &stream, std::string &token) |
int | readInteger (std::istream &stream, std::string &token) |
short | readShort (std::istream &stream, std::string &token) |
long | readLong (std::istream &stream, std::string &token) |
Very low-level utility APIs and objects.
More or less a grab bag of parsing, file, and date-based helper methods.