![]() |
ATLAS Offline Software
|
This module defines a variety of assert style macros. More...
Namespaces | |
| namespace | Check |
| namespace | Shell |
Classes | |
| class | ExceptionMsg |
| struct | Message |
| class | UnitTestDir |
Enumerations | |
| enum | MessageType { MESSAGE_REGULAR , MESSAGE_WARNING , MESSAGE_ERROR , MESSAGE_EXCEPTION , MESSAGE_ABORT , MESSAGE_UNSPECIFIED } |
Functions | |
| void | check_root_version () |
| effects: check whether we are using a consistent root version guarantee: strong failures: version missmatch | |
| void | disable_root_version_check () |
| effects: disable the root version check guarantee: no-fail | |
| void | hadd (const std::string &output_file, const std::vector< std::string > &input_files, unsigned max_files=0) |
| effects: perform the hadd functionality guarantee: basic failures: out of memory III failures: i/o errors | |
| std::string | locate (const std::string &locations) |
| effects: find the file with the given name from a list of locations separated by "::". | |
| void | send_message (const char *package, const char *file, unsigned line, MessageType type, const char *msg) |
| void | send_message (const char *package, const char *file, unsigned line, MessageType type, const std::string &msg) |
| void | send_message (const char *package, const char *file, unsigned line, MessageType type, const TString &msg) |
| void | send_message_abort (const char *package, const char *file, unsigned line, MessageType type, const char *msg) |
| void | send_message_abort (const char *package, const char *file, unsigned line, MessageType type, const std::string &msg) |
| void | send_message_abort (const char *package, const char *file, unsigned line, MessageType type, const TString &msg) |
| bool | SetDirectory (TObject *object, TDirectory *directory) |
| effects: set the directory this object is associated with returns: whether the object type actively knows its directory, otherwise this is a no-op guarantee: strong failures: directory add errors requires: object != 0 rationale: this is mainly meant to allow calling SetDirectory(0) on arbitrary objects, but it also tries to do the right thing when adding objects to a directory. | |
| std::string | substitute (std::string_view str, std::string_view pattern, std::string_view with) |
| effects: substitute all occurences of "pattern" with "with" in the string "str" returns: the substituted string guarantee: out of memory II requires: !pattern.empty() | |
| bool | match_expr (const std::regex &expr, std::string_view str) |
| returns: whether we can match the entire string with the regular expression guarantee: strong failures: out of memory II | |
| std::string | glob_to_regexp (std::string_view glob) |
| returns: a string that is the regular expression equivalent of the given glob expression guarantee: strong failures: out of memory II rationale: I am returning a TString instead of an std::string, so that this can be passed directly into regexp | |
This module defines a variety of assert style macros.
This module defines a class that manages a temporary directory for unit tests.
This module defines macros for reporting errors.
This module provides a lot of global definitions, forward declarations and includes that are used by all modules.
| enum RCU::MessageType |
Definition at line 18 of file MessageType.h.
| void RCU::check_root_version | ( | ) |
effects: check whether we are using a consistent root version guarantee: strong failures: version missmatch
Definition at line 31 of file CheckRootVersion.cxx.
| void RCU::disable_root_version_check | ( | ) |
effects: disable the root version check guarantee: no-fail
Definition at line 52 of file CheckRootVersion.cxx.
| std::string RCU::glob_to_regexp | ( | std::string_view | glob | ) |
returns: a string that is the regular expression equivalent of the given glob expression guarantee: strong failures: out of memory II rationale: I am returning a TString instead of an std::string, so that this can be passed directly into regexp
Definition at line 34 of file StringUtil.cxx.
| void RCU::hadd | ( | const std::string & | output_file, |
| const std::vector< std::string > & | input_files, | ||
| unsigned | max_files ) |
effects: perform the hadd functionality guarantee: basic failures: out of memory III failures: i/o errors
Definition at line 28 of file hadd.cxx.
| std::string RCU::locate | ( | const std::string & | locations | ) |
effects: find the file with the given name from a list of locations separated by "::".
the list may contain either files or URLs starting with "http://". URLs will be downloaded into the data/ directory, where they will stay permanently. returns: the path in the local filesystem guarantee: strong failures: out of memory III failures: inconsistent file names failures: download errors rationale: depending on where you are executing your code, you may or may not have access to /cvmfs where important data files are kept. this mechanism allows to pick it up from various alternate places.
Definition at line 25 of file Locate.cxx.
| bool RCU::match_expr | ( | const std::regex & | expr, |
| std::string_view | str ) |
returns: whether we can match the entire string with the regular expression guarantee: strong failures: out of memory II
Definition at line 29 of file StringUtil.cxx.
| void RCU::send_message | ( | const char * | package, |
| const char * | file, | ||
| unsigned | line, | ||
| MessageType | type, | ||
| const char * | msg ) |
| void RCU::send_message | ( | const char * | package, |
| const char * | file, | ||
| unsigned | line, | ||
| MessageType | type, | ||
| const std::string & | msg ) |
Definition at line 38 of file PrintMsg.cxx.
| void RCU::send_message | ( | const char * | package, |
| const char * | file, | ||
| unsigned | line, | ||
| MessageType | type, | ||
| const TString & | msg ) |
Definition at line 46 of file PrintMsg.cxx.
| void RCU::send_message_abort | ( | const char * | package, |
| const char * | file, | ||
| unsigned | line, | ||
| MessageType | type, | ||
| const char * | msg ) |
| void RCU::send_message_abort | ( | const char * | package, |
| const char * | file, | ||
| unsigned | line, | ||
| MessageType | type, | ||
| const std::string & | msg ) |
Definition at line 70 of file PrintMsg.cxx.
| void RCU::send_message_abort | ( | const char * | package, |
| const char * | file, | ||
| unsigned | line, | ||
| MessageType | type, | ||
| const TString & | msg ) |
Definition at line 78 of file PrintMsg.cxx.
| bool RCU::SetDirectory | ( | TObject * | object, |
| TDirectory * | directory ) |
effects: set the directory this object is associated with returns: whether the object type actively knows its directory, otherwise this is a no-op guarantee: strong failures: directory add errors requires: object != 0 rationale: this is mainly meant to allow calling SetDirectory(0) on arbitrary objects, but it also tries to do the right thing when adding objects to a directory.
For the most part it is a workaround for TH1 objects keeping track of which directory they belong to.
Definition at line 25 of file RootUtils.cxx.
| std::string RCU::substitute | ( | std::string_view | str, |
| std::string_view | pattern, | ||
| std::string_view | with ) |
effects: substitute all occurences of "pattern" with "with" in the string "str" returns: the substituted string guarantee: out of memory II requires: !pattern.empty()
Definition at line 14 of file StringUtil.cxx.