DRAMA 2 main include file.
- Author
- Tony Farrell, AAO
- Copyright
- (c) Australian Astronomical Observatory, 2014. Not to be used for commercial purposes without permission. No warranty of any form unless subject to a specific agreement.
|
| 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.
|
| |
| template<typename... Args> |
| void | drama::ErsReportF (StatusType *status, const fmt::format_string< Args... > fmt, Args &&... args) |
| | Report a std::string via ERS, format using fmt::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 formatted 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 formatted write to a stream, thread compatible.
|
| |