AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
Classes | Namespaces | Functions | Variables
drama.hh File Reference

Detailed Description

DRAMA 2 main include file.

Author
Tony Farrell, AAO $Revision$ $Date$ $Id$
#include "drama.h"
#include "status.h"
#include "Ers.h"
#include "drama2_err.h"
#include <string>
#include <algorithm>
#include <tuple>
#include "drama/util.hh"
#include "drama/exception.hh"
#include "drama/task.hh"
#include "drama/logger.hh"
#include "drama/request.hh"
#include "drama/messagehandler.hh"
#include "drama/threadaction.hh"
#include "drama/threaduface.hh"
#include "drama/path.hh"
#include "drama/threadmonitor.hh"
#include "drama/parameter.hh"
#include "drama/sds.hh"
#include "drama/parsys.hh"
#include "drama/gitarg.hh"

Go to the source code of this file.

Classes

class  drama::ErsContext
 A Class used to manage ERS context. More...
 

Namespaces

namespace  drama
 The drama namespace contains all the classes, types etc of the DRAMA 2 implementation.
 

Functions

template<typename T , unsigned S>
unsigned drama::ArraySize (const T(&v)[S])
 Return the number of elements in an array.
 
void drama::CheckLockTaken (const std::string func, const std::string &file, const int lineNum)
 Ensure the current thread has taken the DRAMA task lock.
 
void drama::ErsAnnulStack (StatusType *status)
 Annul the ERS stack of messages.
 
void drama::ErsFlushStack (StatusType *status)
 Report a std::string via ERS.
 
void drama::ErsReport (const std::string &mes, StatusType *status)
 Report a std::string via ERS.
 
template<typename... Types>
void drama::ErsReport (StatusType *status, const char *format, Types... args)
 Report a message via ERS - safe format.
 
bool drama::GetSymbolExists (const std::string &name)
 Return true if an environment variable is set.
 
std::string drama::GetSymbolVal (const std::string &name)
 Return the value of an environment variable.
 
template<typename T , typename... Types>
void drama::SafePrintf (std::ostream &ostream, const char *format, const T &value, Types... args)
 Safe formated write to a stream.
 
void drama::SafePrintf (std::ostream &ostream, const char *str)
 Safe formatted write to a stream.
 
template<typename... Types>
void drama::TSafePrintf (std::ostream &ostream, const char *format, Types... args)
 Safe formated write to a stream, thread compatible.
 

Variables

const chardrama::Drama2Date
 The DRAMA 2 build date.
 
const chardrama::Drama2Version
 The DRAMA 2 ACMM Release version string.