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

Go to the source code of this file.

Classes

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

Namespaces

namespace  cupt

Defines

#define CUPT_API   __attribute__ ((visibility("default")))
#define CUPT_LOCAL   __attribute__ ((visibility("hidden")))

Functions

void cupt::fatal (const char *format,...)
void cupt::warn (const char *format,...)
void cupt::debug (const char *format,...)
void cupt::simulate (const char *format,...)
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