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

Detailed Description

DRAMA 2 include file - Utility macros, types etc.

Author
Tony Farrell, AAO $Revision$ $Date$ $Id$
#include <string>
#include "drama2_err.h"
#include "status.h"
#include <atomic>
#include <type_traits>

Go to the source code of this file.

Classes

struct  drama::is_stl_container< typename, typename >
 Type trait returning true of the specified type is NOT a STL container. More...
 
struct  drama::is_stl_container< T, drama::void_t< typename T::iterator > >
 Type trait returning true of the specified type is a STL container, that is, it defines T::iterator type. More...
 
class  drama::ScopeGuard< T >
 This class implements a simple scope guard class. More...
 
class  drama::ScopeGuardAtomic< AT, T >
 This class implements a simple scope guard class with an std::atomic based type as the underlying type. More...
 

Namespaces

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

Typedefs

template<class... T0toN>
using drama::void_t = typename voider< T0toN... >::type
 Define a void_t equivalent.
 

Functions

std::string drama::FindFile (const std::string &spec, bool impdir=false)
 Find a file using DulFindFile() specifications.
 
std::string drama::StatusToString (StatusType status)
 Convert a DRAMA status code to text.
 
template<typename Container >
void drama::stringtok (Container &container, std::string const &in, const char *const delimiters=" \t\n\r")
 stringtok is a replacement for C's strtok() function.
 

Variables

template<typename T >
constexpr bool drama::is_stl_container_v = is_stl_container<T>::value
 A type trait to helper determine if a type is an STL container.