|
RTC Toolkit
0.1.0-alpha
|
Namespaces | |
| detail | |
Classes | |
| class | CommandHandler |
| class | CommandHandlerImpl |
| class | CommandReplier |
| class | CommandRequestor |
| class | DataPointPath |
| class | DirCreationError |
| class | FakeOldbAdapter |
| A file based OLDB adapter that simulates OLDB with a local YAML file. More... | |
| class | FakeRuntimeRepoAdapter |
| class | FileFormatError |
| class | FileRepository |
| class | InvalidArgumentException |
| class | InvalidUriInFileError |
| class | LogInitializer |
| class | MatrixBuffer |
| class | OldbAdapter |
| class | OldbApiIf |
| class | PathMissingException |
| class | RepositoryIf |
| Abstract interface providing basic read and write facilities to a repository. More... | |
| class | RtcComponent |
| class | RunnableStateMachine |
| class | RunnableStateMachineLogic |
| class | RunnableStateMachineLogicIf |
| class | RuntimeRepoAdapter |
| class | RuntimeRepoApiIf |
| class | ServiceContainer |
| class | ServiceDiscovery |
| class | StateMachineEngine |
| class | StateMachineEventIf |
| class | StatePublisher |
| class | StateSubscriber |
| class | Subscription |
| class | ThreadActivity |
Typedefs | |
| using | Args = detail::Args |
| using | ActionMethod = std::function< void(scxml4cpp::Context *c)> |
| using | GuardMethod = std::function< bool(scxml4cpp::Context *c)> |
| using | ActivityMethod = std::function< void(StopToken f)> |
| using | SuccessMethod = std::function< void()> |
| using | FailureMethod = std::function< void(const std::runtime_error &)> |
| using | RejectMethod = std::function< void(const rad::AnyEvent &, const std::string &state)> |
| using | StateMethod = std::function< void(const std::string &)> |
| using | StopSource = rad::StopSource |
| using | StopToken = rad::StopToken |
| using | Payload = std::string |
Functions | |
| template<class BusinessLogic , class BusinessLogicFactory > | |
| void | RunAsRtcComponent (Args const &args, BusinessLogicFactory factory) |
| template<class BusinessLogic > | |
| void | RunAsRtcComponent (Args const &args) |
| std::istream & | operator>> (std::istream &input, DataPointPath &path) |
| std::string | GetCfitsioErrorMsg (int status) |
| std::string | CfitsioImageTypeToString (int bitpix) |
| std::string | CfitsioDataTypeToString (int datatype) |
| template<typename T , typename A > | |
| void | WriteMatrixToFits (const std::string &filename, const MatrixBuffer< T, A > &matrix) |
| template<typename T , typename A > | |
| void | ReadMatrixFromFits (const std::string &filename, MatrixBuffer< T, A > &matrix) |
| template<typename T , typename A > | |
| void | WriteVectorToFits (const std::string &filename, const std::vector< T, A > &vector) |
| template<typename T , typename A > | |
| void | ReadVectorFromFits (const std::string &filename, std::vector< T, A > &vector) |
| template<typename A > | |
| void | WriteMatrixToFits (const std::string &filename, const MatrixBuffer< bool, A > &matrix) |
| template<typename A > | |
| void | ReadMatrixFromFits (const std::string &filename, MatrixBuffer< bool, A > &matrix) |
| template<typename A > | |
| void | WriteVectorToFits (const std::string &filename, const std::vector< bool, A > &vector) |
| template<typename A > | |
| void | ReadVectorFromFits (const std::string &filename, std::vector< bool, A > &vector) |
| DataPointPath | operator""_dppath (const char *str, std::size_t len) |
| bool | operator== (const DataPointPath &lhs, const char *rhs) noexcept |
| bool | operator== (const DataPointPath &lhs, const std::string &rhs) noexcept |
| bool | operator== (const DataPointPath &lhs, const DataPointPath &rhs) noexcept |
| DataPointPath | operator+ (DataPointPath lhs, const DataPointPath &rhs) |
| DataPointPath | operator/ (DataPointPath lhs, const DataPointPath &rhs) |
| std::ostream & | operator<< (std::ostream &out, const DataPointPath &rhs) |
| template<typename T , typename A > | |
| constexpr bool | operator== (const MatrixBuffer< T, A > &lhs, const MatrixBuffer< T, A > &rhs) noexcept |
| template<typename T , typename A > | |
| constexpr bool | operator!= (const MatrixBuffer< T, A > &lhs, const MatrixBuffer< T, A > &rhs) noexcept |
| template<typename T , typename A > | |
| constexpr bool | operator< (const MatrixBuffer< T, A > &lhs, const MatrixBuffer< T, A > &rhs) noexcept |
| template<typename T , typename A > | |
| constexpr bool | operator<= (const MatrixBuffer< T, A > &lhs, const MatrixBuffer< T, A > &rhs) noexcept |
| template<typename T , typename A > | |
| constexpr bool | operator> (const MatrixBuffer< T, A > &lhs, const MatrixBuffer< T, A > &rhs) noexcept |
| template<typename T , typename A > | |
| constexpr bool | operator>= (const MatrixBuffer< T, A > &lhs, const MatrixBuffer< T, A > &rhs) noexcept |
| void | LogConfigure (const std::string &cfg_file_name="") |
| void | MakeLogger (const std::string &name, log4cplus::LogLevel ll, bool log_to_file=true, bool additive=false) |
| void | SetDefaultLogger (const std::string &name) |
| log4cplus::Logger & | GetLogger (const std::string &name="") |
| void | ConfigureLogger (log4cplus::Logger &logger, log4cplus::LogLevel ll, bool log_to_file, bool additive) |
| void | LogConfigure (const string &cfg_file_name) |
| log4cplus::Logger & | GetLogger (const string &logger_name) |
| void | MakeLogger (const string &name, log4cplus::LogLevel ll, bool log_to_file, bool additive) |
| template<typename EVENT > | |
| std::shared_ptr< typename EVENT::payload_t > | GetPayloadNothrow (scxml4cpp::Context *c) |
| std::string | getScxmlFilePathName () |
Variables | |
| const std::string | DEFAULT_PATTERN = "[%D{%H:%M:%S:%q}][%-5p][%c] %m%n" |
| std::string | default_logger = "root" |
| using rtctk::componentFramework::ActionMethod = typedef std::function<void(scxml4cpp::Context* c)> |
| using rtctk::componentFramework::ActivityMethod = typedef std::function<void(StopToken f)> |
| using rtctk::componentFramework::Args = typedef detail::Args |
| using rtctk::componentFramework::FailureMethod = typedef std::function<void(const std::runtime_error&)> |
| using rtctk::componentFramework::GuardMethod = typedef std::function<bool(scxml4cpp::Context* c)> |
| using rtctk::componentFramework::Payload = typedef std::string |
| using rtctk::componentFramework::RejectMethod = typedef std::function<void(const rad::AnyEvent&, const std::string& state)> |
| using rtctk::componentFramework::StateMethod = typedef std::function<void(const std::string&)> |
| using rtctk::componentFramework::StopSource = typedef rad::StopSource |
| using rtctk::componentFramework::StopToken = typedef rad::StopToken |
| using rtctk::componentFramework::SuccessMethod = typedef std::function<void()> |
| std::string rtctk::componentFramework::CfitsioDataTypeToString | ( | int | datatype | ) |
Returns a string representation of a Cfitsio data type code.
| [in] | datatype | The Cfitsio data type code that may be used with fits_read_pix or fits_write_pix. |
| std::string rtctk::componentFramework::CfitsioImageTypeToString | ( | int | bitpix | ) |
Returns a string representation of a Cfitsio image type code.
| [in] | bitpix | The Cfitsio image type code that may be used with fits_create_img or returned by fits_get_img_equivtype. |
| void rtctk::componentFramework::ConfigureLogger | ( | log4cplus::Logger & | logger, |
| log4cplus::LogLevel | ll, | ||
| bool | log_to_file, | ||
| bool | additive | ||
| ) |
DOR, use the warning suppression macros to supress warning about use of auto_ptr
DOR, use the warning suppression macros to supress warning about use of auto_ptr
| std::string rtctk::componentFramework::GetCfitsioErrorMsg | ( | int | status | ) |
Helper function to convert a Cfitsio status code to a human readable message.
| [in] | status | The status code set by a Cfitsio routine. |
| log4cplus::Logger& rtctk::componentFramework::GetLogger | ( | const std::string & | name = "" | ) |
Get handle to a specific logger (used with logging macros)
The default logger will be retrieved when calling GetLogger() without any further arguments
| name | optional: name of the requested logger |
| log4cplus::Logger& rtctk::componentFramework::GetLogger | ( | const string & | logger_name | ) |
| std::shared_ptr<typename EVENT::payload_t> rtctk::componentFramework::GetPayloadNothrow | ( | scxml4cpp::Context * | c | ) |
| std::string rtctk::componentFramework::getScxmlFilePathName | ( | ) |
| void rtctk::componentFramework::LogConfigure | ( | const std::string & | cfg_file_name = "" | ) |
Initial logging system configuration
If no log properties file is given, the system will be configured programmatically using the RTC Tk default settings.
| cfg_file_name | optional pathname of log4cplus .properties file |
| void rtctk::componentFramework::LogConfigure | ( | const string & | cfg_file_name | ) |
| void rtctk::componentFramework::MakeLogger | ( | const std::string & | name, |
| log4cplus::LogLevel | ll, | ||
| bool | log_to_file = true, |
||
| bool | additive = false |
||
| ) |
Retrieve new logger programmatically
| name | name of the new logger |
| ll | initial log level (can be changed later) |
| log_to_file | optional: should a log-file be created in the logsink directory |
| additive | optional: enable additivity for logger |
| void rtctk::componentFramework::MakeLogger | ( | const string & | name, |
| log4cplus::LogLevel | ll, | ||
| bool | log_to_file, | ||
| bool | additive | ||
| ) |
|
constexprnoexcept |
Compares two MatrixBuffer objects and returns true if they do not have the same shape or the elements are different.
|
inline |
|
inline |
| lhs | left hand side operand |
| rhs | right hand side operand |
|
inline |
| lhs | left hand side operand |
| rhs | right hand side operand |
|
constexprnoexcept |
Compares two MatrixBuffer objects and returns true for the following cases:
lhs matrix has fewer elements.lhs and rhs, but lhs has fewer rows.operator< returns true for the first element that is different between lhs and rhs. For any other case we return false.
|
inline |
|
constexprnoexcept |
Compares two MatrixBuffer objects and effectively returns rhs < lhs or rhs == lhs.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
constexprnoexcept |
Compares two MatrixBuffer objects and returns true if they have the same shape and identical elements.
|
constexprnoexcept |
Compares two MatrixBuffer objects and returns true for the following cases:
lhs matrix has more elements.lhs and rhs, but lhs has more rows.operator> returns true for the first element that is different between lhs and rhs. For any other case we return false.
|
constexprnoexcept |
Compares two MatrixBuffer objects and effectively returns rhs > lhs or rhs == lhs.
| std::istream& rtctk::componentFramework::operator>> | ( | std::istream & | input, |
| DataPointPath & | path | ||
| ) |
Read into DataPointPath from istream
| void rtctk::componentFramework::ReadMatrixFromFits | ( | const std::string & | filename, |
| MatrixBuffer< bool, A > & | matrix | ||
| ) |
Reads a matrix of boolean values from a FITS image with 8 bits per pixel.
| void rtctk::componentFramework::ReadMatrixFromFits | ( | const std::string & | filename, |
| MatrixBuffer< T, A > & | matrix | ||
| ) |
Reads a FITS file image into a MatrixBuffer object representing a matrix.
| [in] | filename | Name of the FITS file to read from. |
| [out] | matrix | The matrix data object that will be updated with the loaded data. |
| void rtctk::componentFramework::ReadVectorFromFits | ( | const std::string & | filename, |
| std::vector< bool, A > & | vector | ||
| ) |
Read a vector of boolean values from a FITS files containing a 1D image of 8 bit pixels.
| void rtctk::componentFramework::ReadVectorFromFits | ( | const std::string & | filename, |
| std::vector< T, A > & | vector | ||
| ) |
Reads a FITS file containing a 1D image into a std::vector object.
| [in] | filename | Name of the FITS file to read from. |
| [out] | vector | The vector data object that will be updated with the loaded data. |
| void rtctk::componentFramework::RunAsRtcComponent | ( | Args const & | args | ) |
RTC Component runner function, needed to run custom BusinessLogic as RTC Component
| BusinessLogic | user implementation of business logic class, derived from logic interface. |
| args | opaque arguments class to be passed on to the RTC Component class. |
| various | exceptions, which are caught in main |
| void rtctk::componentFramework::RunAsRtcComponent | ( | Args const & | args, |
| BusinessLogicFactory | factory | ||
| ) |
RTC Component runner function, needed to run custom BusinessLogic as RTC Component
This method allows the defintion of a custom business logic factory to cover cases where the Business Logic class is not constructible with default arguments only.
| BusinessLogic,user | implementation of business logic class, derived from logic interface. |
| args | opaque arguments class to be passed on to the RTC Component class. |
| factory | factory class that constructs and returns a BusinessLogic object. |
| various | exceptions, which are caught in main |
| void rtctk::componentFramework::SetDefaultLogger | ( | const std::string & | name | ) |
Set the default logger
The default logger will be retrieved when calling GetLogger() without any further arguments
| name | name of the default logger |
| void rtctk::componentFramework::WriteMatrixToFits | ( | const std::string & | filename, |
| const MatrixBuffer< bool, A > & | matrix | ||
| ) |
Writes a matrix of boolean values as a FITS image with 8 bits per pixel.
| void rtctk::componentFramework::WriteMatrixToFits | ( | const std::string & | filename, |
| const MatrixBuffer< T, A > & | matrix | ||
| ) |
Writes MatrixBuffer data representing a matrix as an image to a FITS file.
| [in] | filename | Name of the FITS file to create. It will be overwritten if it exists. |
| [in] | matrix | The matrix data to write. |
| void rtctk::componentFramework::WriteVectorToFits | ( | const std::string & | filename, |
| const std::vector< bool, A > & | vector | ||
| ) |
Write a vector of boolean values to a FITS file as a 1D image of 8 bit pixels.
| void rtctk::componentFramework::WriteVectorToFits | ( | const std::string & | filename, |
| const std::vector< T, A > & | vector | ||
| ) |
Writes std::vector data as a 1D image to a FITS file.
| [in] | filename | Name of the FITS file to create. It will be overwritten if it exists. |
| [in] | vector | The vector data to write. |
| std::string rtctk::componentFramework::default_logger = "root" |
| const std::string rtctk::componentFramework::DEFAULT_PATTERN = "[%D{%H:%M:%S:%q}][%-5p][%c] %m%n" |