Cupt
Classes | Namespaces | Functions | Variables
common.hpp File Reference
#include <string>
#include <vector>
#include <memory>
#include <stdexcept>

Go to the source code of this file.

Classes

class  cupt::Exception
 general library exception class More...

Namespaces

namespace  cupt

Functions

void cupt::fatal (const char *format,...)
 sends an error message and throws exception
void cupt::warn (const char *format,...)
 sends a warning message
void cupt::debug (const char *format,...)
 sends a debug message
void cupt::simulate (const char *format,...)
 sends a simulate message
string cupt::__ (const char *message)
void cupt::consumePackageName (string::const_iterator begin, string::const_iterator end, string::const_iterator &resultEnd)
 reads package name in range
bool cupt::checkPackageName (const string &packageName, bool throwOnError=true)
 checks package name for correctness
bool cupt::checkVersionString (const string &versionString, bool throwOnError=true)
 checks version string for correctness
int cupt::compareVersionStrings (const string &left, const string &right)
 compares two version strings

Variables

const char *const cupt::libraryVersion
 the version of Cupt library
int cupt::messageFd
 message file descriptor

Detailed Description

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator