Scarab
Project 8 C++ Utility Library
Classes | Typedefs | Functions | Variables
scarab Namespace Reference

Classes

class  authentication
 
class  base_registrar
 
class  base_registrar< XBaseType, void >
 
class  cancelable
 
class  concurrent_queue
 
class  configurator
 
class  destroyer
 
struct  dig_calib_params
 
class  error
 
class  factory
 
class  factory< XBaseType, void >
 
class  global_config
 
class  logger
 
class  param
 
class  param_array
 
class  param_input_codec
 
class  param_node
 
class  param_output_codec
 
class  param_translator
 
class  param_value
 
class  parsable
 
class  parser
 
class  registrar
 
class  registrar< XBaseType, XDerivedType, void >
 
class  singleton
 
class  version
 
class  version_ifc
 
class  version_semantic
 

Typedefs

typedef fs::path path
 
typedef uint64_t time_nsec_type
 

Functions

 LOGGER (mtlog,"authentication")
 
const string & EndColor ()
 
const string & FatalColor ()
 
const string & ErrorColor ()
 
const string & WarnColor ()
 
const string & InfoColor ()
 
const string & ProgColor ()
 
const string & DebugColor ()
 
const string & TraceColor ()
 
const string & OtherColor ()
 
 LOGGER (slog,"configurator")
 
SCARAB_API std::ostream & operator<< (std::ostream &out, const param &a_value)
 
SCARAB_API std::ostream & operator<< (std::ostream &out, const param_value &a_value)
 
SCARAB_API std::ostream & operator<< (std::ostream &out, const param_array &a_value)
 
SCARAB_API std::ostream & operator<< (std::ostream &out, const param_node &a_value)
 
template<>
std::string param_value::get< std::string > () const
 
template<>
scarab::path param_value::get< scarab::path > () const
 
 LOGGER (dlog,"parsable")
 
 LOGGER (slog,"cancelable")
 
 LOGGER (slog_cq,"concurrent_queue")
 
SCARAB_API void get_calib_params (unsigned n_bits, unsigned data_type_size, double v_offset, double v_range, bool bits_r_aligned, dig_calib_params *params)
 
SCARAB_API void get_calib_params2 (unsigned n_bits, unsigned data_type_size, double v_offset, double v_range, double dac_gain, bool bits_r_aligned, dig_calib_params *params)
 
template<typename dig_type , typename an_type >
an_type d2a (dig_type dig, const struct dig_calib_params *params)
 
template<typename an_type , typename dig_type >
dig_type a2d (an_type analog, const struct dig_calib_params *params)
 
 LOGGER (slog_fact,"factory")
 
path SCARAB_API expand_path (const string &a_path)
 
SCARAB_API int get_time_monotonic (struct timespec *time)
 
SCARAB_API int get_time_current (struct timespec *time)
 
SCARAB_API time_nsec_type time_to_nsec (struct timespec time)
 
SCARAB_API double time_to_sec (struct timespec time)
 
SCARAB_API void time_diff (struct timespec start, struct timespec end, struct timespec *diff)
 
SCARAB_API size_t get_time_absolute_str (char *ptr)
 
SCARAB_API std::string get_absolute_time_string ()
 
std::string demangle (const char *a_name)
 
template<class x_type >
std::string type (const x_type &a_param)
 

Variables

SCARAB_API char date_time_format [] = "%Y-%m-%dT%H:%M:%SZ"
 

Detailed Description

The standard scarab namespace.

Typedef Documentation

typedef fs::path path

Definition at line 25 of file path.hh.

typedef uint64_t time_nsec_type

Definition at line 22 of file time.hh.

Function Documentation

dig_type scarab::a2d ( an_type  analog,
const struct dig_calib_params params 
)

Definition at line 53 of file digital.hh.

an_type scarab::d2a ( dig_type  dig,
const struct dig_calib_params params 
)

Definition at line 44 of file digital.hh.

const string& scarab::DebugColor ( )

Definition at line 42 of file logger.cc.

std::string demangle ( const char *  a_name)

Definition at line 58 of file typename.cc.

const string& scarab::EndColor ( )

Definition at line 36 of file logger.cc.

const string& scarab::ErrorColor ( )

Definition at line 38 of file logger.cc.

path SCARAB_API expand_path ( const string &  a_path)

Definition at line 19 of file path.cc.

const string& scarab::FatalColor ( )

Definition at line 37 of file logger.cc.

SCARAB_API std::string get_absolute_time_string ( )

Definition at line 105 of file time.cc.

SCARAB_API void get_calib_params ( unsigned  n_bits,
unsigned  data_type_size,
double  v_offset,
double  v_range,
bool  bits_r_aligned,
dig_calib_params params 
)

Definition at line 18 of file digital.cc.

SCARAB_API void get_calib_params2 ( unsigned  n_bits,
unsigned  data_type_size,
double  v_offset,
double  v_range,
double  dac_gain,
bool  bits_r_aligned,
dig_calib_params params 
)

Definition at line 32 of file digital.cc.

SCARAB_API size_t get_time_absolute_str ( char *  ptr)

Definition at line 95 of file time.cc.

SCARAB_API int get_time_current ( struct timespec *  time)

Definition at line 49 of file time.cc.

SCARAB_API int get_time_monotonic ( struct timespec *  time)

Definition at line 29 of file time.cc.

const string& scarab::InfoColor ( )

Definition at line 40 of file logger.cc.

scarab::LOGGER ( dlog  ,
"parsable"   
)
scarab::LOGGER ( slog  ,
"cancelable"   
)
scarab::LOGGER ( slog_fact  ,
"factory"   
)
scarab::LOGGER ( slog  ,
"configurator"   
)
scarab::LOGGER ( slog_cq  ,
"concurrent_queue"   
)
scarab::LOGGER ( mtlog  ,
"authentication"   
)
SCARAB_API std::ostream & operator<< ( std::ostream &  out,
const param a_value 
)

Definition at line 539 of file param.cc.

SCARAB_API std::ostream & operator<< ( std::ostream &  out,
const param_value a_value 
)

Definition at line 545 of file param.cc.

SCARAB_API std::ostream & operator<< ( std::ostream &  out,
const param_array a_value 
)

Definition at line 551 of file param.cc.

SCARAB_API std::ostream & operator<< ( std::ostream &  out,
const param_node a_value 
)

Definition at line 557 of file param.cc.

const string& scarab::OtherColor ( )

Definition at line 44 of file logger.cc.

Definition at line 533 of file param.hh.

std::string scarab::param_value::get< std::string > ( ) const
inline

Definition at line 527 of file param.hh.

const string& scarab::ProgColor ( )

Definition at line 41 of file logger.cc.

SCARAB_API void time_diff ( struct timespec  start,
struct timespec  end,
struct timespec *  diff 
)

Definition at line 80 of file time.cc.

SCARAB_API time_nsec_type time_to_nsec ( struct timespec  time)

Definition at line 70 of file time.cc.

SCARAB_API double time_to_sec ( struct timespec  time)

Definition at line 75 of file time.cc.

const string& scarab::TraceColor ( )

Definition at line 43 of file logger.cc.

std::string scarab::type ( const x_type &  a_param)

Definition at line 22 of file typename.hh.

const string& scarab::WarnColor ( )

Definition at line 39 of file logger.cc.

Variable Documentation

SCARAB_API char date_time_format = "%Y-%m-%dT%H:%M:%SZ"

Definition at line 17 of file time.cc.