The namespace "mcs" contains all classes, functions and type declarations provided by the mcs library. Those names that cannot be protected inside namespaces, like symbols and macros, has the "MCS_" prefix.
|
Classes |
class | B64_Codec |
| A Base 64 encoder/decoder. More...
|
class | BaseThread |
| Base class for MCS threaded objects. More...
|
class | Buffer |
| High level buffer. More...
|
class | Client |
| Connect to a MCS server as a client. More...
|
class | ClientInfo |
| Class holding information about a client connection. More...
|
class | CommandParser |
| Parse command lines. More...
|
class | Conf |
| Read and write configuration files. More...
|
class | Data |
| A general purpose data type. More...
|
class | DateTime |
| A class to hold date time information. More...
|
class | DBConn |
| Handle database connection. More...
|
class | Dynamic_Array |
| A thread safe, template class to handle an array of objects. More...
|
class | Env |
| Hold all environment variables. More...
|
class | Event |
| Hold informations about an event. More...
|
class | FITSReader |
| Read a FITS file. More...
|
class | FITSWriter |
| Write a fits file. More...
|
class | HostInfo |
| Retrieve informations about a network host. More...
|
class | LocalThread |
| Server side administrative thread. More...
|
class | NetInterface |
| Retrieve informations about network interfaces. More...
|
class | Pipe |
| A high level class to use system pipes. More...
|
class | Query |
| Execute queries on the database. More...
|
class | Record |
| A dynamic array of Data objects. More...
|
class | RecordSet |
| The base class that implement the data abstraction layer. More...
|
class | Serializable |
| Serialize memory buffers or files into chunks. More...
|
class | Server |
| Main server class for a MCS-based application. More...
|
class | ServerSocket |
| Manage TCP server sockets. More...
|
class | Socket |
| Manage TCP sockets. More...
|
class | Synchro |
| A simple class to implement "critical sections". More...
|
class | Table |
| A class to directly set and retrieve value from a database table. More...
|
class | Thread |
| A class to create separate threads. More...
|
class | ThreadFunc |
class | ThreadSpecificData |
class | URLReader |
| A class that provide a uniform access to file retrieving. More...
|
class | UserThread |
| The server side client thread. More...
|
Typedefs |
typedef enum Types | Types |
Enumerations |
enum | BufferFreeOnDestroy { AUTO_FREE,
DONT_FREE
} |
| Values to be used in Buffer class constructor. More...
|
enum | RetValue { OK,
WARN,
ERROR,
FATAL
} |
| Return value for MCS routines. More...
|
enum | ThrowExceptions { DONT_THROW,
THROW
} |
| Values to be used with throwexc parameters. More...
|
enum | TimeMode { UTC,
LOCAL
} |
| Enumerate operational mode for a DateTime object. More...
|
enum | Types {
TINY,
SMALL,
MEDIUM,
INT,
BIGINT,
FLOAT,
DOUBLE,
STRING,
TIME,
TINY_BLOB,
BLOB,
POINTER
} |
| Enumeration of base type for Data. More...
|
Functions |
string | btos (bool b) |
| Convert a boolean to a string containing "true" or "false".
|
string | chomp (string s) |
| Remove any trailing newlines.
|
int | copy (char *OLDNAME, char *NEWNAME) |
| Copy a file from OLDNAME to NEWNAME.
|
string | dtos (double f) |
| Convert an floating point number to a string.
|
int | extractCode (const char *msg) |
| Extract the numeric code from a server reply.
|
bool | File_Dir_Exist (string fn, unsigned int &size) |
| Check if a file or directory exists.
|
bool | FITS2Types (int fits, Types &dbt, bool &isunsigned) |
| Convert a FITSIO type into a MCS type.
|
string | fitsError (int status) |
| Return a description of a FITS error.
|
bool | FloatType (Types type) |
| Tell if "type" is a float type.
|
string | hexDump (const void *buf, unsigned int size) |
| Return a string with an hex dump of the buffer pointed by "buf", with a length of "size".
|
bool | IntType (Types type) |
| Tell if "type" is an integer type.
|
string | itos (int i) |
| Convert an integer to a string.
|
void | ls2Record (string fn, Record &v) |
| Fill a vector with a list of file.
|
Env * | mcsStart (string appname, string inipath="", Server *(*cb_newServer)(Env *)=NULL) |
| Start a MCS server.
|
bool | mkDir (string path, mode_t perm=0, enum ThrowExceptions throwexc=THROW) |
| Create a directory.
|
int | move (char *OLDNAME, char *NEWNAME) |
| Move a file from OLDNAME to NEWNAME.
|
time_t | my_timelocal (struct tm *tm) |
string | MYSQL2Str (enum_field_types type) |
| Return the name of the MySQL type given in "type".
|
bool | MYSQL2Types (enum_field_types mtype, Types &type) |
| Convert a MySQL type into a MCS type.
|
string | Pwd () |
| Return the current working dir.
|
mode_t | read_umask () |
| Read the file creation mask of the current process.
|
string | remLeading (string &s, const char *p) |
| Remove any leading character "p".
|
string | remTabs (string s) |
| Remove any tab.
|
string | remTrailing (string &s, const char *p) |
| Remove any trailing character "p".
|
bool | rmDir (string path, enum ThrowExceptions throwexc=THROW) |
| Removes a directory.
|
int | Select (int fd[], int nfd, unsigned int sec_timeout, unsigned int usec_timeout, int op) |
int | Select (int fd, unsigned int sec_timeout, unsigned int usec_timeout, int op) |
void | sleep_ms (unsigned int millisec) |
| A millisecond resolution sleep function.
|
vector< string > | split (string s, string sep=" ") |
| Split a string into tokens.
|
int | stoi (string s, int errval) |
| Convert a string to an integer.
|
int | stoi (string s) |
| Convert a string to an integer.
|
string | subst (string s, string what, string with, int op=0) |
| Perform substitutions on a string.
|
string | trim (string s) |
| Remove any leading or trailing blanks.
|
bool | Types2FITS (Types dbt, bool isunsigned, int &fits) |
| Convert a MCS type into a FITSIO type.
|
bool | Types2MYSQL (Types &type, enum_field_types &mtype) |
| Convert a MCS type into a MySQL type.
|
string | Types2MYSQLStr (Types &type, bool isunsigned) |
| Convert a MCS type into a MySQL type.
|
bool | Types2S_FITS (Types dbt, int len, bool isunsigned, string &fits) |
| Convert a MCS type into a FITSIO type code.
|
string | Types2Str (Types type, bool isunsigned) |
| Return the name of the type given in "type" and "isunsigned".
|
bool | VarLenType (Types type) |
| Tell if "type" is a variable length type.
|
string | vtos (vector< string > vec) |
| Join a vector of strings in a single string using newlines.
|