|
RTC Toolkit 6.0.0-pre2
|
Namespaces | |
| namespace | detail |
| namespace | test |
Classes | |
| struct | AbstractEvent |
| Abstract Event Type that is used as a base for all events. More... | |
| class | AdapterCreationException |
| Thrown from service factory methods to indicate the adapter construction failed. More... | |
| class | AlertCmdsImpl |
| Class that handles reception of command ClearAlerts using MAL. More... | |
| class | AlertConflictException |
| Exception indicating that an alert conflicts with already known alert. More... | |
| class | AlertEventPublisher |
| Alert observer that publishes alerts to Event Channel. More... | |
| struct | AlertInfo |
| class | AlertLogger |
| Alert observer that publishes alerts to Log Files. More... | |
| struct | AlertObserverIf |
| class | AlertOldbPublisher |
| Alert observer that publishes alerts to Online Database. More... | |
| class | AlertService |
| class | AlertServiceIf |
| Alert Service interface. More... | |
| class | AlertSource |
| Models a single alert source that can be set or cleared. More... | |
| class | AlertStatus |
| struct | AlertStatusEvent |
| Event published when alert status is changed. More... | |
| class | AlertTelegrafPublisher |
| Alert observer that publishes alerts to InfluxDB via Telegraf. More... | |
| class | AlertUnknownException |
| Exception indicating that an alert does not exist. More... | |
| class | Args |
| Class used to parse default command line arguments. More... | |
| struct | AsSpan |
| Gets the span type for converting type T to a span. More... | |
| struct | AsSpan< const std::array< T, Size > > |
| struct | AsSpan< MatrixBuffer< T, Allocator > > |
| struct | AsSpan< std::array< T, Size > > |
| struct | AsSpan< std::vector< T, Allocator > > |
| class | BufferManager |
| BufferManager is a class that will allocate a big buffer and spit it up in several cache-aligned sub-buffers. More... | |
| class | BufferMonitor |
| Monitors min, mean and max occupation of a buffer and publishes them to OLDB. More... | |
| class | BufferTooSmall |
| The BufferTooSmall is thrown when an API call fails because the provided buffer is not big enough to hold the data. More... | |
| class | CommandReplier |
| Class that handles reception of commands using MAL. More... | |
| class | CommandRequestor |
| Extendable class that allows to send commands to components using MAL. More... | |
| class | ComponentMetrics |
| Implementation of ComponentMetricsIf. More... | |
| class | ComponentMetricsIf |
| Component metrics interface. More... | |
| struct | ComputationEvent |
| Abstract Event Type that is used as a base for computation events. More... | |
| struct | ComputationFinishedEvent |
| Event Type used to signal that a computation has finished. More... | |
| struct | ComputationStartedEvent |
| Event Type used to signal that a computation has started. More... | |
| struct | ConfigurationEvent |
| Abstract Event Type that is used as a base for configuration events. More... | |
| struct | ConfigurationRetrievedEvent |
| Event Type used to signal that configuration data items were retrieved from RTR. More... | |
| struct | ConfigurationUpdatedEvent |
| Event Type used to signal that configuration data items were updated in RTR. More... | |
| class | ConsulServiceRegistryAdapter |
| Class that implements a very basic service discovery mechanism using Consul. More... | |
| struct | CoordinationEvent |
| Abstract Event Type that is used as a base for coordination events. More... | |
| class | CounterMetricInfo |
| Defines auxiliary information associated with each counter registered with ComponentMetricsIf. More... | |
| class | DataPointPath |
| This class provides a wrapper for a data point path. More... | |
| class | DataPointRecordingUnit |
| Recording Unit that can record datapoints. More... | |
| class | DataRecorder |
| This is an abstract class that can be used to implement an OutputStage for a Recording Unit. More... | |
| class | Dds |
| Common functionallty needed to create DDS entities like participant and topic that can be later used (extent) for DDS data publishing and subscribing . More... | |
| class | DdsPub |
| All functionallty needed to create DDS entities for DDS data publishing is concentrated in this class. More... | |
| class | DdsReaderListener |
| Listener class for different DDS events. More... | |
| struct | DdsReaderParams |
| Structure that keeps together topic name and DDS Data Writer listener. More... | |
| class | DdsSub |
| All functionality needed to create DDS entities for DDS data subscribing is concentrated in this class. More... | |
| class | DdsWriterListener |
| Listener class for differetn DDS events. More... | |
| struct | DdsWriterParams |
| Structure that keeps together topic name and DDS Data Writer listener. More... | |
| class | DdtError |
| This Exception is raised when the DDT Publisher returns an error that cannot be handled by the DDT Sink. More... | |
| class | DdtSinkNotFound |
| This Exception is raised when an invalid ddt sink is requested. More... | |
| class | DebugExport |
| class | Deserialiser |
| Deserialisation helper class for reading, it provides a writable byte span to the RtrClient. More... | |
| class | Deserialiser< std::string > |
| class | DurationMonitor |
| Monitors min, mean and max duration and publishes them to OLDB. More... | |
| class | DynamicThreadPool |
| The DynamicThreadPool allows creating multiple threads which are garbage collected. More... | |
| class | EventPublisherIf |
| Interface class for publishing JSON events. More... | |
| class | EventRecordingUnit |
| Recording Unit that records JSON events in JSON Lines format (.jsonl) More... | |
| class | EventServiceIf |
| Interface class for providing pub/sub facilities for JSON events. More... | |
| class | EventSubscriberIf |
| Interface class for subscribing to JSON events. More... | |
| class | FactoryRegistry |
| A simple registry of various factory objects. More... | |
| struct | FakeComponentMetrics |
| class | FileServiceRegistryAdapter |
| Class that implements a very basic service discovery mechanism using a file. More... | |
| struct | FitsColumn |
| struct | FitsColumnFormat |
| Type that stores type information for a FITS TFORM string. More... | |
| struct | FitsColumnFormat< bool > |
| struct | FitsColumnFormat< double > |
| struct | FitsColumnFormat< float > |
| struct | FitsColumnFormat< int16_t > |
| struct | FitsColumnFormat< int32_t > |
| struct | FitsColumnFormat< int64_t > |
| struct | FitsColumnFormat< int8_t > |
| struct | FitsColumnFormat< std::string > |
| struct | FitsColumnFormat< T, typename std::enable_if_t< IS_DYNAMIC_SPAN_TYPE< T > > > |
| struct | FitsColumnFormat< T, typename std::enable_if_t< IS_MATRIX_BUFFER_TYPE< T > > > |
| struct | FitsColumnFormat< T, typename std::enable_if_t< IS_STATIC_SPAN_TYPE< T > > > |
| struct | FitsColumnFormat< T, typename std::enable_if_t< IS_STD_ARRAY_TYPE< T > > > |
| struct | FitsColumnFormat< T, typename std::enable_if_t< IS_VECTOR_TYPE< T > > > |
| struct | FitsColumnFormat< uint16_t > |
| struct | FitsColumnFormat< uint32_t > |
| struct | FitsColumnFormat< uint64_t > |
| struct | FitsColumnFormat< uint8_t > |
| class | FitsDataRecorderFitsError |
| class | FitsRecorder |
| class | FrequencyEstimator |
| Estimates the frequency in which Tick is called and publishes result to OLDB. More... | |
| class | FuncCmdsImpl |
| Class that handles reception of commands Run, Idle and Recover using MAL. More... | |
| struct | HasSampleIdWithCorrectType |
| struct | HasSampleIdWithCorrectType< T, decltype(std::declval< T >().sample_id, 0)> |
| struct | HrtcConfigurationAppliedEvent |
| Event Type used to signal that configuration data items were applied in HRTC. More... | |
| struct | HrtcConfigurationScheduledEvent |
| Event Type used to signal that configuration data items were scheduled to be applied in HRTC. More... | |
| struct | HrtcStateChangedEvent |
| Event Type used to signal that some entity in HRTC changed its state. More... | |
| struct | InfluxPoint |
| Represents a single data point for InfluxDB. More... | |
| class | InfluxTagMap |
| Helper class for passing tags in Telegraf. More... | |
| class | InitialisationException |
| Thrown in cases where an initialisation routine has failed. More... | |
| class | IntrospectionImpl |
| Class that handles reception of introspection commands. More... | |
| class | InvalidArgumentException |
| Thrown if an argument passed to a method was invalid. More... | |
| class | InvalidSetting |
| This Exception is raised when a invalid setting was used in the runtime repo. More... | |
| class | InvalidStateChange |
| This Exception is raised when the state change requested is invalid. More... | |
| class | IpcqError |
| This Exception is raised when the ipc queue returns an error that cannot be handled by the Telemetry Source Thread. More... | |
| class | IpcqRecordingUnit |
| Recording Unit that can record from shared memory queue. More... | |
| struct | is_base_of_template_impl |
| struct | IsAdapterIdTypeDefined |
Structure for detecting if a class declared a type called AdapterIdType using SFINAE. More... | |
| struct | IsAdapterIdTypeDefined< T, std::void_t< decltype(std::declval< typename T::AdapterIdType >())> > |
Structure for detecting if a class declared a type called AdapterIdType using SFINAE. More... | |
| struct | IsComplexType |
Structure for detecting std::vector types using SFINAE. More... | |
| struct | IsComplexType< std::complex< T > > |
Structure for detecting std::vector types using SFINAE. More... | |
| struct | IsDynamicSpanType |
Structure for detecting gsl::span types of dynamic size using SFINAE. More... | |
| struct | IsDynamicSpanType< gsl::span< T, N > > |
Structure for detecting gsl::span types of dynamic size using SFINAE. More... | |
| struct | IsMatrixBufferType |
Structure for detecting MatrixBuffer types using SFINAE. More... | |
| struct | IsMatrixBufferType< MatrixBuffer< T, A > > |
Structure for detecting MatrixBuffer types using SFINAE. More... | |
| struct | IsMatrixSpanType |
Structure for detecting MatrixSpan types using SFINAE. More... | |
| struct | IsMatrixSpanType< MatrixSpan< T > > |
Structure for detecting MatrixSpan types using SFINAE. More... | |
| struct | IsSpanConvertible |
| Type trait to check if a type can be converted to a Span using AsSpan/ToSpan. More... | |
| struct | IsSpanType |
Structure for detecting gsl::span types using SFINAE. More... | |
| struct | IsSpanType< gsl::span< T, N > > |
Structure for detecting gsl::span types using SFINAE. More... | |
| struct | IsStaticSpanType |
Structure for detecting gsl::span types of fixed size using SFINAE. More... | |
| struct | IsStaticSpanType< gsl::span< T, N > > |
Structure for detecting gsl::span types of fixed size using SFINAE. More... | |
| struct | IsStdArrayType |
Structure for detecting std::array types using SFINAE. More... | |
| struct | IsStdArrayType< std::array< T, N > > |
Structure for detecting std::array types using SFINAE. More... | |
| struct | IsSupportedUriSchemeDefined |
Structure for detecting if a class declared a member called SUPPORTED_URI_SCHEME using SFINAE. More... | |
| struct | IsSupportedUriSchemeDefined< T, std::void_t< decltype(T::SUPPORTED_URI_SCHEME)> > |
Structure for detecting if a class declared a member called SUPPORTED_URI_SCHEME using SFINAE. More... | |
| struct | IsVectorType |
Structure for detecting std::vector types using SFINAE. More... | |
| struct | IsVectorType< std::vector< T, A > > |
Structure for detecting std::vector types using SFINAE. More... | |
| class | LogInfo |
| class | LogInitializer |
| RAII class to clean-up logging without leaking memory. More... | |
| struct | Loopaware |
| Life cycle extension to make RtcComponent Loopaware. More... | |
| class | LoopCmdsImpl |
| Class that handles reception of commands Open and Close using MAL. More... | |
| class | MalDdsEventPublisher |
| Implementation of event publisher. More... | |
| class | MalDdsEventService |
| Implementation of low-level event service using CII MAL DDS as middleware. More... | |
| class | MalDdsEventSubscriber |
| Implementation of event subscriber. More... | |
| class | MatrixBuffer |
| A buffer class representing 2D matrix data. More... | |
| class | MatrixSpan |
| A span referencing a 2D matrix buffer. More... | |
| class | MeasCmdsImpl |
| Class that handles reception of command Measure using MAL. More... | |
| struct | Measurable |
| Life cycle extension to make RtcComponent Measurable. More... | |
| class | MetricConflictException |
| Exception indicating that a metric such as counter or thread conflicts with already known metrics. More... | |
| struct | MockComponentMetrics |
| class | ModelBuilderBase |
| Base class of the ModelBuilder. More... | |
| class | ModelManipulator |
| Class that provides methods to manipulate the state machine model. More... | |
| class | NestedExceptionPrinter |
| Adapter object intended to be used in contexts without direct access to the output-stream object. More... | |
| class | NoBufferAvailableException |
| class | NotImplementedException |
| The NotImplementedException is thrown whenever an attempt is made to use a feature or function that has not been implemented. More... | |
| class | OldbAdapter |
| Implementation of the OLDB Adapter. More... | |
| class | OldbIf |
| Base interface for all OLDB adapters. More... | |
| class | OldbSubscription |
| class | OptCmdsImpl |
| Class that handles reception of command Optimise using MAL. More... | |
| struct | Optimisable |
| Life cycle extension to make RtcComponent Optimisable. More... | |
| class | PathMapper |
| Used to calculate URIs from datapoint paths. More... | |
| class | PersistentRepoAdapter |
| Implements the Persistent Configuration Repository adapter that uses the CII configuration service as the backend. More... | |
| class | PersistentRepoIf |
| Base interface for all Persistent Configuration Repository adapters. More... | |
| class | PlantUmlExport |
| class | PopulateConfig |
| A utility class used to populate the Runtime Configuration Repository. More... | |
| class | PythonInterpreter |
| Helper class for managing the lifecycle of an embedded Python interpreter. More... | |
| struct | RecordingInfo |
| class | RecordingUnit |
| Abstract base class for all sources that can be recorded by the MetadataCollector and TelemetryRecorder. More... | |
| class | RecoverCmdsImpl |
| Class that handles reception of command Recover using MAL. More... | |
| class | RegisterFactory |
| A helper class used to perform registration and deregistration of a factory. More... | |
| class | RepositoryFactory |
| A base class for factories that create instances of repository adapters from URIs. More... | |
| class | RepositoryIf |
| Abstract interface providing basic read and write facilities to a repository. More... | |
| class | RepositoryRecordingUnit |
| Recording Unit that can record multiple repository datapoints including metadata. More... | |
| class | RepositorySubscriberIf |
| Abstract interface providing I/O and additional subscription facilities for a repository. More... | |
| class | RequestAborted |
| Thrown if somebody sent a stop or abort command. More... | |
| class | RequestDispatcher |
| class | RequestFailed |
| Thrown if the command was accepted but the task to run failed. More... | |
| class | RequestRejected |
| Thrown if a command is not allowed in current state or guard. More... | |
| struct | RtcComponent |
| Basic life cycle for RtcComponent. More... | |
| class | RtctkException |
| The RtctkException class is the base class for all Rtctk exceptions. More... | |
| struct | RtcTypeInfo |
| class | RtrClient |
| This internal class implements the basic communication and commands toward the server. More... | |
| struct | Runnable |
| Life cycle extension to make RtcComponent Runnable. More... | |
| class | RuntimeRepoAdapter |
| Implementation of the Runtime Configuration Repository Adapter. More... | |
| class | RuntimeRepoIf |
| Base interface for all Runtime Configuration Repository adapters. More... | |
| class | ScXmlExport |
| class | Serialiser |
| Serialisation helper class for writing, it provides readable byte span to the RtrClient. More... | |
| class | Serialiser< std::string > |
| class | ServiceContainer |
| Container class that holds services of any type. More... | |
| class | ServiceDiscovery |
| Class that implements a very basic service discovery mechanism. More... | |
| class | ServiceRegistryIf |
| Class that implements a service registry to be used by the service discovery. More... | |
| class | SmCatExport |
| struct | State |
| struct | StateChangedEvent |
| Event Type used to signal that some entity changed its state. More... | |
| struct | StateMachine |
| class | StateMachineEngine |
| class | StatePublisher |
| Class used to publish state-changed-topic using MAL. More... | |
| class | StateSubscriber |
| Class used to subscribe to state-changed-topic using MAL. More... | |
| class | StdCmdsImpl |
| Class that handles reception of stdif commands. More... | |
| struct | StdComponent |
| Basic life cycle for StdComponent. More... | |
| class | StdIfRequestAborted |
| Thrown if somebody sent a stop or abort command. More... | |
| class | StdIfRequestFailed |
| Thrown if the command was accepted but the task to run failed. More... | |
| class | StdIfRequestRejected |
| Thrown if the command is not allowed in current state or guard. More... | |
| class | SuspCmdsImpl |
| Class that handles reception of commands Suspend and Resume using MAL. More... | |
| struct | Suspendable |
| Life cycle extension to make Loopaware RtcComponent Suspendable. More... | |
| class | TelegrafAdapter |
| Implementation of the Telegraf Adapter. More... | |
| class | ThreadActivity |
| Class that handles state machine activities. More... | |
| struct | TimeString |
| Represents an ISO 8601 time string in format: YYYY-MM-DDThh:mm:ss.sssZ. More... | |
| struct | Transition |
| struct | Unit |
| class | UnsupportedTypeException |
| The UnsupportedTypeException is thrown whenever an attempt is made to use an unsupported type in the RTC Toolkit API. More... | |
| class | UnsupportedUriException |
| The UnsupportedUriException is thrown whenever an attempt is made to use an unsupported URI in the RTC Toolkit API. More... | |
| class | UpdateCmdsImpl |
| Class that handles reception of command Update using MAL. More... | |
Typedefs | |
| using | RtcComponentSuper = StdComponent |
| 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(std::exception_ptr)> |
| using | RejectMethod = std::function<void(const rad::AnyEvent&, const std::string& state)> |
| using | StateMethod = std::function<void(const std::string&)> |
| template<template< typename... > class Base, typename Derived> | |
| using | is_base_of_template = typename is_base_of_template_impl<Base, Derived>::type |
| using | JsonPayload = nlohmann::json |
| Type requirements: | |
| using | StopSource = rad::StopSource |
| using | StopToken = rad::StopToken |
| template<typename T> | |
| using | AsSpanT = typename AsSpan<T>::TYPE |
| using | RecUnitListType = std::list<std::unique_ptr<RecordingUnit>> |
| using | RecUnitFactoryType = std::function<RecUnitListType(const std::string&, ServiceContainer&)> |
| using | MetaData = RepositoryIf::MetaData |
| using | Timestamp = RepositoryIf::Timestamp |
| using | Lut = RequestDispatcher<OldbAdapter> |
| using | PathList = RepositoryIf::PathList |
| using | RepositoryServiceException = PopulateConfig::RepositoryServiceException |
| using | InvalidConfigException = PopulateConfig::InvalidConfigException |
| using | InvalidDataPointException = PopulateConfig::InvalidDataPointException |
| using | FieldValue = std::variant<int64_t, uint64_t, float, double, bool, std::string> |
Enumerations | |
| enum | StateType : uint8_t { Machine , Simple , Parallel , Composite , Initial , Final } |
| enum class | DataPointRecordingSource : uint8_t { OLDB , RUNTIMEREPO } |
Functions | |
| template<typename EventType> | |
| elt::mal::future< std::string > | InjectReqRepEvent (StateMachineEngine &engine) |
| template<typename EventType, typename PayloadType> | |
| elt::mal::future< std::string > | InjectReqRepEvent (StateMachineEngine &engine, PayloadType &payload) |
| std::stringstream | Export (StateMachine &sm, const std::string &format) |
| Export the in-memory state machine model in various formats. | |
| template<class BL, class BLF> | |
| void | RunAsRtcComponent (const Args &args, BLF factory) |
| RTC Component runner function, needed to run custom BusinessLogic as RTC Component. | |
| template<class BL> | |
| void | RunAsRtcComponent (const Args &args) |
| RTC Component runner function, needed to run custom BusinessLogic as RTC Component. | |
| int | Main (int argc, char *argv[]) |
| Main function implementation. | |
| template<typename EVENT> | |
| std::shared_ptr< typename EVENT::payload_t > | GetPayloadNothrow (scxml4cpp::Context *c) |
| std::string | ReplaceAll (std::string str, const std::string &from, const std::string &to) |
| std::map< std::string, std::string > | ParseIdToMap (const std::string &id) |
| std::istream & | operator>> (std::istream &input, DataPointPath &path) |
| void | to_json (JsonPayload &j, const DataPointPath &v) |
| void | from_json (const JsonPayload &j, DataPointPath &v) |
| void | PrintComposedExceptions (std::ostream &os, const std::vector< std::exception_ptr > &exceptions) |
| Print composed exception(s) in exception messages to os. | |
| void | PrintNestedExceptions (std::ostream &os, const std::exception &exception) |
| Print nested exception(s) in exception messages to os. | |
| void | PrintNestedExceptions (std::ostream &os, std::exception_ptr ptr) |
| Print nested exception(s) in exception messages to os. | |
| std::string | GetCfitsioErrorMsg (int status) |
| Helper function to convert a Cfitsio status code to a human readable message. | |
| std::string | CfitsioImageTypeToString (int bitpix) |
| Returns a string representation of a Cfitsio image type code. | |
| std::string | CfitsioDataTypeToString (int datatype) |
| Returns a string representation of a Cfitsio data type code. | |
| const std::type_info & | GetFitsImageType (const std::string &filename) |
| Get the C++ type corresponding to a FITS image. | |
| std::vector< uint64_t > | GetFitsImageShape (const std::string &filename) |
| Get the shape of a FITS image. | |
| std::size_t | GetFitsImageSize (const std::string &filename) |
| Get the number of pixels in a FITS image. | |
| template<> | |
| void | WriteDataToFits (const std::string &filename, const std::any &buffer) |
| template<> | |
| void | ReadDataFromFits (const std::string &filename, std::any &buffer) |
| RTCTK_API DataPointPath | operator""_dppath (const char *str, std::size_t len) |
| bool | operator== (const DataPointPath &lhs, const char *rhs) |
| bool | operator< (const DataPointPath &lhs, const char *rhs) |
| bool | operator<= (const DataPointPath &lhs, const char *rhs) |
| bool | operator> (const DataPointPath &lhs, const char *rhs) |
| bool | operator>= (const DataPointPath &lhs, const char *rhs) |
| bool | operator== (const DataPointPath &lhs, const std::string &rhs) |
| bool | operator< (const DataPointPath &lhs, const std::string &rhs) |
| bool | operator<= (const DataPointPath &lhs, const std::string &rhs) |
| bool | operator> (const DataPointPath &lhs, const std::string &rhs) |
| bool | operator>= (const DataPointPath &lhs, const std::string &rhs) |
| bool | operator== (const DataPointPath &lhs, const DataPointPath &rhs) |
| bool | operator< (const DataPointPath &lhs, const DataPointPath &rhs) |
| bool | operator<= (const DataPointPath &lhs, const DataPointPath &rhs) |
| bool | operator> (const DataPointPath &lhs, const DataPointPath &rhs) |
| bool | operator>= (const DataPointPath &lhs, const DataPointPath &rhs) |
| DataPointPath | operator+ (DataPointPath lhs, const DataPointPath &rhs) |
| DataPointPath | operator/ (DataPointPath lhs, const DataPointPath &rhs) |
| std::ostream & | operator<< (std::ostream &out, const DataPointPath &rhs) |
| template<class E> | |
| auto | WrapWithNested (E &&exception) noexcept(std::is_nothrow_constructible_v< detail::UnspecifiedNested< typename std::decay_t< E > >, E && >) |
| Constructs an unspecified exception that derives from both the provided object and std::nested_exception. | |
| template<typename T> | |
| void | WriteDataToFits (const std::string &filename, const T &buffer) |
| Writes a matrix, vector, or span to a FITS image file. | |
| template<typename T> | |
| void | ReadDataFromFits (const std::string &filename, T &buffer) |
| Reads data from a FITS file into a buffer (matrix, vector, or span). | |
| template<> | |
| void | WriteDataToFits (const std::string &filename, const std::any &buffer) |
| template<> | |
| void | ReadDataFromFits (const std::string &filename, std::any &buffer) |
| template<typename T> | |
| void | WriteMatrixToFits (const std::string &filename, const T &matrix, bool boolean_items=false) |
| Writes data representing a matrix as an image to a FITS file. | |
| template<typename T> | |
| void | ReadMatrixFromFits (const std::string &filename, T &matrix) |
| Reads a FITS file image into a buffer object representing a matrix. | |
| template<typename T> | |
| void | WriteVectorToFits (const std::string &filename, const T &vector, bool boolean_items=false) |
| Writes data as a 1D image to a FITS file. | |
| template<typename T> | |
| void | ReadVectorFromFits (const std::string &filename, T &vector) |
| Reads a FITS file containing a 1D image into a buffer object representing a vector. | |
| template<typename A> | |
| void | 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. | |
| template<typename A> | |
| void | ReadMatrixFromFits (const std::string &filename, MatrixBuffer< bool, A > &matrix) |
| Reads a matrix of boolean values from a FITS image with 8 bits per pixel. | |
| template<typename A> | |
| void | 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. | |
| template<typename A> | |
| void | 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. | |
| template<typename T, typename A> | |
| constexpr bool | operator== (const MatrixBuffer< T, A > &lhs, const MatrixBuffer< T, A > &rhs) noexcept |
| Compares two MatrixBuffer objects and returns true if they have the same shape and identical elements. | |
| template<typename T, typename A> | |
| constexpr bool | operator!= (const MatrixBuffer< T, A > &lhs, const MatrixBuffer< T, A > &rhs) noexcept |
| Compares two MatrixBuffer objects and returns true if they do not have the same shape or the elements are different. | |
| template<typename T, typename A> | |
| constexpr bool | operator< (const MatrixBuffer< T, A > &lhs, const MatrixBuffer< T, A > &rhs) noexcept |
Compares two MatrixBuffer objects and returns true for the following cases: | |
| template<typename T, typename A> | |
| constexpr bool | operator<= (const MatrixBuffer< T, A > &lhs, const MatrixBuffer< T, A > &rhs) noexcept |
Compares two MatrixBuffer objects and effectively returns rhs < lhs or rhs == lhs. | |
| template<typename T, typename A> | |
| constexpr bool | operator> (const MatrixBuffer< T, A > &lhs, const MatrixBuffer< T, A > &rhs) noexcept |
Compares two MatrixBuffer objects and returns true for the following cases: | |
| template<typename T, typename A> | |
| constexpr bool | operator>= (const MatrixBuffer< T, A > &lhs, const MatrixBuffer< T, A > &rhs) noexcept |
Compares two MatrixBuffer objects and effectively returns rhs > lhs or rhs == lhs. | |
| void | to_json (JsonPayload &j, const RepositoryIf::MetaData &e) |
| template<typename T> | |
| bool | GetOptionalParam (RepositoryIf &repo, const DataPointPath &path, T &value) |
| Get optional datapoint. | |
| std::optional< numapp::NumaPolicies > | GetNumaPolicies (RepositoryIf &repo, const DataPointPath &path) |
| Constructs a NumaPolicies object from the configuration datapoints found under the given datapoint path. | |
| template<class Tp> | |
| bool | ParseTimepoint (const std::string_view time, Tp &timepoint) |
| Parses a string representing a timepoint. | |
| std::optional< std::chrono::nanoseconds > | ParseDuration (const std::string_view duration) |
| Parses a string representing a duration. | |
| void | to_json (JsonPayload &j, const TimeString &e) |
| void | from_json (const JsonPayload &j, TimeString &e) |
| InfluxTagMap::operator const std::map< std::string, std::string > & () const | |
| std::string | RetcodeToString (ReturnCode_t retcode) |
| const char * | GetTopicName (const DataWriter *writer) |
| const char * | GetTopicName (const DataReader *reader) |
| FASTDDS_SEQUENCE (AgnosticTopicSeq, AgnosticTopic) | |
| FASTDDS_SEQUENCE (SampleInfoSeq, SampleInfo) | |
| template<class T> | |
| std::string | GetFitsType (const std::optional< size_t > length=FitsColumnFormat< T >::COUNT) |
| Get the TFORM value for a type. | |
| template<class T, class... Args> | |
| void | GetFITSTForm (std::vector< std::string > &input) |
| Get a vactor of TFORM strings for a list of types. | |
| template<class T, class... Args> | |
| void | GetFITSTFormWithLength (std::vector< std::string > &input, const gsl::span< std::optional< size_t >, sizeof...(Args)+1 > sizes) |
| Get a vactor of TFORM strings for a list of types using the custom sizes provided. | |
| template<class T, class... Args> | |
| void | AddRecUnit (RecUnitListType &units, Args &&... args) |
| Add a RecordingUnit to the RecordingUnit list of a TelemetryRecorder oder MetadataCollector. | |
| template<typename T> | |
| AsSpanT< T > | ToSpan (T &data) |
| Simple function that converts types that are convertible to spans to a span. | |
| void | to_json (JsonPayload &j, const AbstractEvent &e) |
| void | from_json (const JsonPayload &j, AbstractEvent &e) |
| void | to_json (JsonPayload &j, const ComputationEvent &e) |
| void | from_json (const JsonPayload &j, ComputationEvent &e) |
| void | to_json (JsonPayload &j, const ComputationStartedEvent &e) |
| void | from_json (const JsonPayload &j, ComputationStartedEvent &e) |
| void | to_json (JsonPayload &j, const ComputationFinishedEvent &e) |
| void | from_json (const JsonPayload &j, ComputationFinishedEvent &e) |
| void | to_json (JsonPayload &j, const ConfigurationEvent &e) |
| void | from_json (const JsonPayload &j, ConfigurationEvent &e) |
| void | to_json (JsonPayload &j, const ConfigurationUpdatedEvent &e) |
| void | from_json (const JsonPayload &j, ConfigurationUpdatedEvent &e) |
| void | to_json (JsonPayload &j, const ConfigurationRetrievedEvent &e) |
| void | from_json (const JsonPayload &j, ConfigurationRetrievedEvent &e) |
| void | to_json (JsonPayload &j, const HrtcConfigurationScheduledEvent &e) |
| void | from_json (const JsonPayload &j, HrtcConfigurationScheduledEvent &e) |
| void | to_json (JsonPayload &j, const HrtcConfigurationAppliedEvent &e) |
| void | from_json (const JsonPayload &j, HrtcConfigurationAppliedEvent &e) |
| void | to_json (JsonPayload &j, const CoordinationEvent &e) |
| void | from_json (const JsonPayload &j, CoordinationEvent &e) |
| void | to_json (JsonPayload &j, const StateChangedEvent &e) |
| void | from_json (const JsonPayload &j, StateChangedEvent &e) |
| void | to_json (JsonPayload &j, const HrtcStateChangedEvent &e) |
| void | from_json (const JsonPayload &j, HrtcStateChangedEvent &e) |
| void | to_json (JsonPayload &j, const AlertStatusEvent &e) |
| void | from_json (const JsonPayload &j, AlertStatusEvent &e) |
| template<typename T> | |
| std::string | PrettyTypeName () |
| template<typename EventType> | |
| bool | ConvertibleTo (const JsonPayload &j) |
| Helper to check if JsonPayload is convertible to a certain EventType. | |
| template<typename EventType> | |
| std::optional< EventType > | ConvertTo (const JsonPayload &j) |
| Helper to convert to certain EventType if possible. | |
| void | LogConfigure (const std::string &app_name, const std::string &props_file_name) |
| Performs custom logging configuration for any application. | |
| void | LogConfigure (const std::string &app_name, log4cplus::LogLevel default_log_level=log4cplus::INFO_LOG_LEVEL) |
| Performs default logging configuration for RTC Component applications. | |
| void | LogConfigureTool (const std::string &app_name, log4cplus::LogLevel default_log_level=log4cplus::ERROR_LOG_LEVEL, bool log_to_file=false) |
| Performs default logging configuration for Client Applications and Standalone Tools. | |
| log4cplus::Logger & | GetLogger (const std::string &name="app") |
| Get handle to a specific logger. | |
| void | ConfigureLogProperties (log4cplus::LogLevel log_level, const std::string &app_name, const fs::path &logsink_path="") |
| fs::path | GetLogsinkPath () |
| template<typename InputIter, typename T, typename U> | |
| constexpr void | GenerateRamp (InputIter begin, InputIter end, T offset, U slope) |
| Generates a ramp of values. | |
| template<typename InputIter, typename T> | |
| constexpr void | GenerateAlternatingRamp (InputIter begin, InputIter end, std::uint32_t sample_id, T offset) |
| Generates a ramp of values alternating on the sample ID. | |
| template<typename InputIter, typename T, typename U> | |
| constexpr bool | ValidRamp (InputIter begin, InputIter end, T offset, U slope) |
| Checks to see if the buffer contains a ramp of values. | |
| template<typename InputIter, typename T> | |
| constexpr bool | ValidAlternatingRamp (InputIter begin, InputIter end, std::uint32_t sample_id, T offset) |
| Checks to see if the buffer contains an alternating ramp of values. | |
| RTCTK_LOCAL std::string | GetMetaDataYamlTag (const std::type_info &type) |
| Returns the appropriate YAML tag for a specific metadata type. | |
| RTCTK_LOCAL std::string | GetRootBaseTypeName (const CiiConfigInstanceNode &node) |
| Returns the root base type name for the node. | |
| py::module RTCTK_API | LoadMatrixBufferPyBinds () |
| Imports the embedded Python module to access supported C++ MatrixBuffer objects. | |
| py::module RTCTK_API | LoadVectorBufferPyBinds () |
| Imports the embedded Python module to access supported C++ std::vector objects. | |
| PYBIND11_EMBEDDED_MODULE (Import_Matrix_Buffer, mod) | |
| PYBIND11_EMBEDDED_MODULE (Import_Vector_Buffer, mod) | |
| std::string | AnyToJsonString (const std::any &val) |
| std::any | AnyFromJsonString (const std::string &val) |
| template<typename T> | |
| void | ToHeaders (RtrClient::Headers &headers, const RepositoryIf::MetaData &md, bool add_builtin_md) |
| void | FromHeaders (const RtrClient::Headers &headers, RepositoryIf::MetaData &md) |
| std::vector< InfluxPoint > | ParseStateToInfluxPoints (const std::string &component_name, const std::string &states_str, const std::map< std::string, std::string > &base_tags) |
| bool | HasBadChars (const std::string &s) |
Variables | |
| const std::string | STD_OK_REPLY = "OK" |
| template<template< typename... > class Base, typename Derived> | |
| constexpr bool | is_base_of_template_v = is_base_of_template<Base, Derived>::value |
| template<typename T> | |
| constexpr bool | IS_VECTOR_TYPE = IsVectorType<T>::value |
Is true if the type is a std::vector<U> of some type U. | |
| template<typename T> | |
| constexpr bool | IS_MATRIX_BUFFER_TYPE = IsMatrixBufferType<T>::value |
Is true if the type is a MatrixBuffer<U> of some type U. | |
| template<typename T> | |
| constexpr bool | IS_SPAN_TYPE = IsSpanType<T>::value |
Is true if the type is a gsl::span<U> of some type U. | |
| template<typename T> | |
| constexpr bool | IS_MATRIX_SPAN_TYPE = IsMatrixSpanType<T>::value |
Is true if the type is a MatrixSpan<U> of some type U. | |
| template<typename T> | |
| constexpr bool | IS_STD_ARRAY_TYPE = IsStdArrayType<T>::value |
Is true if the type is a std::array<U> of some type U. | |
| template<typename T> | |
| constexpr bool | IS_STATIC_SPAN_TYPE = IsStaticSpanType<T>::value |
Is true if the type is a gsl::span type with fixed size. | |
| template<typename T> | |
| constexpr bool | IS_DYNAMIC_SPAN_TYPE = IsDynamicSpanType<T>::value |
Is true if the type is a gsl::span type with dynamic size. | |
| template<typename T> | |
| constexpr bool | IS_SUPPORTED_URI_SCHEME_DEFINED = IsSupportedUriSchemeDefined<T>::value |
Is true if the class contains the member SUPPORTED_URI_SCHEME. | |
| template<typename T> | |
| constexpr bool | IS_ADAPTER_ID_TYPE_DEFINED = IsAdapterIdTypeDefined<T>::value |
Is true if the class contains the type declaration for AdapterIdType. | |
| template<typename T> | |
| constexpr bool | IS_COMPLEX_TYPE = IsComplexType<T>::value |
Is true if the type is a std::complex<U> of some type U. | |
| const std::unordered_map< std::string, const std::type_info & > | TYPE_MAP_S2T |
| const std::unordered_map< std::type_index, std::string > | TYPE_MAP_T2S |
| std::atomic< RepositorySubscriberIf::SubscriptionId > | g_subscription_id_counter |
| template<typename T> | |
| constexpr bool | HAS_MEMBER_SAMPLE_ID_UINT32T = HasSampleIdWithCorrectType<T>::value |
| template<typename T> | |
| constexpr bool | IS_SPAN_CONVERTIBLE = IsSpanConvertible<T>::value |
| Small helper alias for IsSpanConvertible. | |
| using rtctk::componentFramework::ActionMethod = std::function<void(scxml4cpp::Context* c)> |
| using rtctk::componentFramework::ActivityMethod = std::function<void(StopToken f)> |
| using rtctk::componentFramework::AsSpanT = typename AsSpan<T>::TYPE |
| using rtctk::componentFramework::FailureMethod = std::function<void(std::exception_ptr)> |
| using rtctk::componentFramework::FieldValue = std::variant<int64_t, uint64_t, float, double, bool, std::string> |
| using rtctk::componentFramework::GuardMethod = std::function<bool(scxml4cpp::Context* c)> |
| using rtctk::componentFramework::InvalidDataPointException = PopulateConfig::InvalidDataPointException |
| using rtctk::componentFramework::is_base_of_template = typename is_base_of_template_impl<Base, Derived>::type |
| using rtctk::componentFramework::JsonPayload = nlohmann::json |
Type requirements:
| typedef RequestDispatcher< PersistentRepoAdapter > rtctk::componentFramework::Lut = RequestDispatcher<OldbAdapter> |
| using rtctk::componentFramework::RecUnitFactoryType = std::function<RecUnitListType(const std::string&, ServiceContainer&)> |
| using rtctk::componentFramework::RecUnitListType = std::list<std::unique_ptr<RecordingUnit>> |
| using rtctk::componentFramework::RejectMethod = std::function<void(const rad::AnyEvent&, const std::string& state)> |
| using rtctk::componentFramework::RepositoryServiceException = PopulateConfig::RepositoryServiceException |
| using rtctk::componentFramework::StateMethod = std::function<void(const std::string&)> |
| using rtctk::componentFramework::StopSource = rad::StopSource |
| using rtctk::componentFramework::StopToken = rad::StopToken |
| using rtctk::componentFramework::SuccessMethod = std::function<void()> |
|
strong |
| enum rtctk::componentFramework::StateType : uint8_t |
| void rtctk::componentFramework::AddRecUnit | ( | RecUnitListType & | units, |
| Args &&... | args ) |
Add a RecordingUnit to the RecordingUnit list of a TelemetryRecorder oder MetadataCollector.
| units | list of RecordingUnits |
| args | Arguments for the Constructor of that RecordingUnit |
| std::any rtctk::componentFramework::AnyFromJsonString | ( | const std::string & | val | ) |
| std::string rtctk::componentFramework::AnyToJsonString | ( | const std::any & | val | ) |
| 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::ConfigureLogProperties | ( | log4cplus::LogLevel | log_level, |
| const std::string & | app_name, | ||
| const fs::path & | logsink_path = "" ) |
| bool rtctk::componentFramework::ConvertibleTo | ( | const JsonPayload & | j | ) |
Helper to check if JsonPayload is convertible to a certain EventType.
| j | A JSON object, possibly holding the desired event type. |
| std::optional< EventType > rtctk::componentFramework::ConvertTo | ( | const JsonPayload & | j | ) |
Helper to convert to certain EventType if possible.
| j | A JsonPayload object, possibly holding the desired EventType. |
| std::stringstream rtctk::componentFramework::Export | ( | StateMachine & | sm, |
| const std::string & | format ) |
Export the in-memory state machine model in various formats.
| sm | reference to the state machine model. |
| format | format as a string, options "scxml", "smcat", "puml", "debug" |
| various | rtctk::componentFramework::RtctkException exceptions |
| rtctk::componentFramework::FASTDDS_SEQUENCE | ( | AgnosticTopicSeq | , |
| AgnosticTopic | ) |
| rtctk::componentFramework::FASTDDS_SEQUENCE | ( | SampleInfoSeq | , |
| SampleInfo | ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| AbstractEvent & | e ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| AlertStatusEvent & | e ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| ComputationEvent & | e ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| ComputationFinishedEvent & | e ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| ComputationStartedEvent & | e ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| ConfigurationEvent & | e ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| ConfigurationRetrievedEvent & | e ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| ConfigurationUpdatedEvent & | e ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| CoordinationEvent & | e ) |
| RTCTK_API void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| DataPointPath & | v ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| HrtcConfigurationAppliedEvent & | e ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| HrtcConfigurationScheduledEvent & | e ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| HrtcStateChangedEvent & | e ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| StateChangedEvent & | e ) |
| void rtctk::componentFramework::from_json | ( | const JsonPayload & | j, |
| TimeString & | e ) |
| void rtctk::componentFramework::FromHeaders | ( | const RtrClient::Headers & | headers, |
| RepositoryIf::MetaData & | md ) |
|
constexpr |
Generates a ramp of values alternating on the sample ID.
This will generate a positive increasing ramp for even sample ID numbers starting with the offset value. A negative decreasing ramp is generated for odd sample ID numbers starting at minus the offset. The difference between consecutive values is always 1 (or 2+2i if dealing with complex numbers).
The following code snippet should help to indicate the type of pattern that is generated:
Similarly for complex numbers:
| [in] | begin | The iterator pointing to the start of the buffer. |
| [in] | end | The iterator pointing to one element past the end of the buffer. |
| [in] | sample_id | The identifier number of the sample used to choose the ramp's slope. |
| [in] | offset | The value of the first element written to the buffer. |
|
constexpr |
Generates a ramp of values.
Fills the buffer with an array of values representing the line: y(x) = a + b x
Where a is the offset parameter, b is the slope parameter and x is a positive integer, i.e. 0, 1, 2, ... etc.
| [in] | begin | The iterator pointing to the start of the buffer. |
| [in] | end | The iterator pointing to one element past the end of the buffer. |
| [in] | offset | The value of the first element written to the buffer. |
| [in] | slope | The slope of the line, also interpreted as the delta between elements. |
| 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. |
| std::vector< uint64_t > rtctk::componentFramework::GetFitsImageShape | ( | const std::string & | filename | ) |
Get the shape of a FITS image.
This method will return a vector of integers indicating the number of pixels in each dimension. For 1D data the vector will contain only one number. For 2D data the vector will contain the number of rows and columns in the image.
| [in] | filename | The name of the FITS file to query. |
| RtctkException | If the FITS file could not be read or has the wrong format. |
| std::size_t rtctk::componentFramework::GetFitsImageSize | ( | const std::string & | filename | ) |
Get the number of pixels in a FITS image.
This method will return the total number pixels in the image stored in the primary HDU of a FITS file.
| [in] | filename | The name of the FITS file to query. |
| RtctkException | If the FITS file could not be read or has the wrong format. |
| const std::type_info & rtctk::componentFramework::GetFitsImageType | ( | const std::string & | filename | ) |
Get the C++ type corresponding to a FITS image.
This method will identify the FITS format of the image in the primary HDU and return the type info object corresponding to the C++ type that should be used with one of the methods: ReadVectorFromFits, WriteVectorToFits, ReadMatrixFromFits or WriteMatrixToFits.
| [in] | filename | The name of the FITS file to query. |
| RtctkException | If the FITS file could not be read or has the wrong format. |
| void rtctk::componentFramework::GetFITSTForm | ( | std::vector< std::string > & | input | ) |
Get a vactor of TFORM strings for a list of types.
| input | vector into which the TFORM values should be written |
| void rtctk::componentFramework::GetFITSTFormWithLength | ( | std::vector< std::string > & | input, |
| const gsl::span< std::optional< size_t >, sizeof...(Args)+1 > | sizes ) |
Get a vactor of TFORM strings for a list of types using the custom sizes provided.
| input | vector into which the TFORM values should be written |
| sizes | vector into which the TFORM values should be written |
| std::string rtctk::componentFramework::GetFitsType | ( | const std::optional< size_t > | length = FitsColumnFormat<T>::COUNT | ) |
Get the TFORM value for a type.
Supports integers, float, double and std::arrays with these types
| log4cplus::Logger & rtctk::componentFramework::GetLogger | ( | const std::string & | name = "app" | ) |
Get handle to a specific logger.
This is used all over the place together with the log4cplus logging macros.
The default logger is retrieved when calling GetLogger() without any further arguments
Instrument RTC developers are supposed to either use:
The RTC Toolkit will use a different logger hierarchy, namely:
| name | optional: name of the requested logger |
| fs::path rtctk::componentFramework::GetLogsinkPath | ( | ) |
| RTCTK_LOCAL std::string rtctk::componentFramework::GetMetaDataYamlTag | ( | const std::type_info & | type | ) |
Returns the appropriate YAML tag for a specific metadata type.
| [in] | type | The type of the metadata. |
| std::optional< numapp::NumaPolicies > rtctk::componentFramework::GetNumaPolicies | ( | RepositoryIf & | repo, |
| const DataPointPath & | path ) |
Constructs a NumaPolicies object from the configuration datapoints found under the given datapoint path.
| repo | Repository to read from. |
| path | The base path under which configuration datapoints for NUMA policies will be searched. The following sub-paths will be searched:
|
Valid values for the scheduler_policy datapoint are:
Fifo Rr Other Batch If either Fifo or Rr are used then the scheduler_priority must be used to set the threads priority. Valid values for scheduler_priority is different depending on scheduler_policy:
Fifo and Rr: 1-99Other and Batch: -20 - 19 with 0 being the default. This is also known as the "nice" value.Valid values for the memory_policy_mode datapoint are:
Default Bind Interleave Preferred scheduler_priority without scheduler_policy has no effect. scheduler_policy must always be used if scheduler_priority is set in the configuration. memory_policy_mode and memory_policy_nodes must be provided together. | bool rtctk::componentFramework::GetOptionalParam | ( | RepositoryIf & | repo, |
| const DataPointPath & | path, | ||
| T & | value ) |
Get optional datapoint.
| T | Data point type. |
| repo | Repository to read from. | |
| path | Data point to read. | |
| [out] | value | Destination variable for read datapoint. Will not be modified if datapoint does not exist. |
| true | if the datapoint exists and value has been set. |
| false | otherwise. |
| std::shared_ptr< typename EVENT::payload_t > rtctk::componentFramework::GetPayloadNothrow | ( | scxml4cpp::Context * | c | ) |
| RTCTK_LOCAL std::string rtctk::componentFramework::GetRootBaseTypeName | ( | const CiiConfigInstanceNode & | node | ) |
Returns the root base type name for the node.
| [in] | node | The YAML node corresponding to the datapoint. |
| const char * rtctk::componentFramework::GetTopicName | ( | const DataReader * | reader | ) |
| const char * rtctk::componentFramework::GetTopicName | ( | const DataWriter * | writer | ) |
| bool rtctk::componentFramework::HasBadChars | ( | const std::string & | s | ) |
| rtctk::componentFramework::InfluxTagMap::operator const std::map< std::string, std::string > & | ( | ) | const |
| elt::mal::future< std::string > rtctk::componentFramework::InjectReqRepEvent | ( | StateMachineEngine & | engine | ) |
| elt::mal::future< std::string > rtctk::componentFramework::InjectReqRepEvent | ( | StateMachineEngine & | engine, |
| PayloadType & | payload ) |
| py::module RTCTK_API rtctk::componentFramework::LoadMatrixBufferPyBinds | ( | ) |
Imports the embedded Python module to access supported C++ MatrixBuffer objects.
| py::module RTCTK_API rtctk::componentFramework::LoadVectorBufferPyBinds | ( | ) |
Imports the embedded Python module to access supported C++ std::vector objects.
| void rtctk::componentFramework::LogConfigure | ( | const std::string & | app_name, |
| const std::string & | props_file_name ) |
Performs custom logging configuration for any application.
If a log properties file is given, the system will be configured according to this file. When creating the log properties file, take into account that the RTC Tk code logs to a "rtctk" logger and the RTC application code is supposed to log to an "app" logger. So configure loggers and appenders accordingly in your custom properties file. At a minimum, specify the "root" logger level and an appender for the root logger.
| app_name | component instance name or name of application (if not an RTC component) |
| props_file_name | pathname of log4cplus properties file |
| void rtctk::componentFramework::LogConfigure | ( | const std::string & | app_name, |
| log4cplus::LogLevel | default_log_level = log4cplus::INFO_LOG_LEVEL ) |
Performs default logging configuration for RTC Component applications.
This method is used on default by RTC Component applications and it configures logging programmatically using RTC Tk default settings.
This means:
| app_name | component instance name or name of application (if not an RTC component) |
| default_log_level | default log level |
| void rtctk::componentFramework::LogConfigureTool | ( | const std::string & | app_name, |
| log4cplus::LogLevel | default_log_level = log4cplus::ERROR_LOG_LEVEL, | ||
| bool | log_to_file = false ) |
Performs default logging configuration for Client Applications and Standalone Tools.
This method is used on default by Standalone Tools and Client Applications and it configures logging programmatically using RTC Tk default settings:
This means:
| app_name | component instance name or name of application (if not an RTC component) |
| default_log_level | default log level |
| log_to_file | option to write logs to syslog and human readable log files |
| int rtctk::componentFramework::Main | ( | int | argc, |
| char * | argv[] ) |
Main function implementation.
Main reason for this is to have the implementation inside a namespace owned by rtctk to avoid name lookup problems.
|
constexprnoexcept |
Compares two MatrixBuffer objects and returns true if they do not have the same shape or the elements are different.
|
inline |
|
inline |
| InvalidPathException | When invalid characters are found. Only a-z,0-9,_,/ are allowed, no duplicate slashes '/', and no triple underscores '_' or trailing underscores. |
| lhs | Left hand side operand. |
| rhs | Right hand side operand. |
|
inline |
| lhs | Left hand side operand. |
| rhs | Right hand side operand. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
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 |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
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.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
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.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
constexprnoexcept |
Compares two MatrixBuffer objects and effectively returns rhs > lhs or rhs == lhs.
| std::istream & rtctk::componentFramework::operator>> | ( | std::istream & | input, |
| DataPointPath & | path ) |
| std::optional< std::chrono::nanoseconds > rtctk::componentFramework::ParseDuration | ( | const std::string_view | duration | ) |
Parses a string representing a duration.
Supported duration strings include:
| duration | The input string representing the duration. |
| result | The output parameter where the parsed duration will be stored. |
| std::map< std::string, std::string > rtctk::componentFramework::ParseIdToMap | ( | const std::string & | id | ) |
| std::vector< InfluxPoint > rtctk::componentFramework::ParseStateToInfluxPoints | ( | const std::string & | component_name, |
| const std::string & | states_str, | ||
| const std::map< std::string, std::string > & | base_tags ) |
| bool rtctk::componentFramework::ParseTimepoint | ( | const std::string_view | time, |
| Tp & | timepoint ) |
Parses a string representing a timepoint.
Supported time formats:
For all formats including time: seconds, subseconds and timezone are optional
| time | The input string representing the time. |
| timepoint | The output parameter where the parsed timepoint will be stored. |
true if the time string was successfully parsed, false otherwise. | std::string rtctk::componentFramework::PrettyTypeName | ( | ) |
| void rtctk::componentFramework::PrintComposedExceptions | ( | std::ostream & | os, |
| const std::vector< std::exception_ptr > & | exceptions ) |
Print composed exception(s) in exception messages to os.
It uses a simple form where first line is indented and prefixed as:
| os | Output stream to print to. |
| exceptions | List of composed exceptions to print. |
| void rtctk::componentFramework::PrintNestedExceptions | ( | std::ostream & | os, |
| const std::exception & | exception ) |
Print nested exception(s) in exception messages to os.
It uses a simple form where first line is indented and prefixed as:
exception: Message
exception: Nested message
exception: Even more nested
| os | Output stream to print to. |
| exception | Exception (possibly nested) to print. |
| void rtctk::componentFramework::PrintNestedExceptions | ( | std::ostream & | os, |
| std::exception_ptr | ptr ) |
Print nested exception(s) in exception messages to os.
If ptr does not hold an exception this function has no effect.
| os | Output stream to print to. |
| ptr | Exception (possibly nested) to print. |
| rtctk::componentFramework::PYBIND11_EMBEDDED_MODULE | ( | Import_Matrix_Buffer | , |
| mod | ) |
| rtctk::componentFramework::PYBIND11_EMBEDDED_MODULE | ( | Import_Vector_Buffer | , |
| mod | ) |
| void rtctk::componentFramework::ReadDataFromFits | ( | const std::string & | filename, |
| std::any & | buffer ) |
| void rtctk::componentFramework::ReadDataFromFits | ( | const std::string & | filename, |
| std::any & | buffer ) |
| void rtctk::componentFramework::ReadDataFromFits | ( | const std::string & | filename, |
| T & | buffer ) |
Reads data from a FITS file into a buffer (matrix, vector, or span).
The function opens a FITS image using CFITSIO, validates that the image pixel type matches the buffer element type, checks dimensionality (1D for vectors/spans, 2D for matrices), and resizes the buffer when applicable. Data is then read into the buffer. Boolean types are converted from integer representation.
| T | Buffer type (MatrixBuffer, MatrixSpan, Vector, or Span). |
| [in] | filename | Name of the FITS file to read. |
| [out] | buffer | Destination buffer to store the image data. |
| RtctkException | If the file cannot be opened, metadata is invalid, or read fails. |
| BufferTooSmall | If a span buffer is smaller than the FITS data size. |
| 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, |
| T & | matrix ) |
Reads a FITS file image into a buffer object representing a matrix.
| T | The type of the matrix object. Must be MatrixBuffer or MatrixSpan. |
| [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, |
| T & | vector ) |
Reads a FITS file containing a 1D image into a buffer object representing a vector.
| T | The type of the vector object. Must be std::vector or gsl::span. |
| [in] | filename | Name of the FITS file to read from. |
| [out] | vector | The vector data object that will be updated with the loaded data. |
| std::string rtctk::componentFramework::ReplaceAll | ( | std::string | str, |
| const std::string & | from, | ||
| const std::string & | to ) |
| std::string rtctk::componentFramework::RetcodeToString | ( | ReturnCode_t | retcode | ) |
| void rtctk::componentFramework::RunAsRtcComponent | ( | const Args & | args | ) |
RTC Component runner function, needed to run custom BusinessLogic as RTC Component.
| BL,type | specification of logic class, must implement BizLogicIf. |
| args | opaque arguments class to be passed on to the RTC Component class. |
| various | exceptions, which are caught in main |
| void rtctk::componentFramework::RunAsRtcComponent | ( | const Args & | args, |
| BLF | 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.
| BL,type | specification of logic class, must implement BizLogicIf. |
| BLF,type | specification of business logic factory class. |
| 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::to_json | ( | JsonPayload & | j, |
| const AbstractEvent & | e ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const AlertStatusEvent & | e ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const ComputationEvent & | e ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const ComputationFinishedEvent & | e ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const ComputationStartedEvent & | e ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const ConfigurationEvent & | e ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const ConfigurationRetrievedEvent & | e ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const ConfigurationUpdatedEvent & | e ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const CoordinationEvent & | e ) |
| RTCTK_API void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const DataPointPath & | v ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const HrtcConfigurationAppliedEvent & | e ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const HrtcConfigurationScheduledEvent & | e ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const HrtcStateChangedEvent & | e ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const RepositoryIf::MetaData & | e ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const StateChangedEvent & | e ) |
| void rtctk::componentFramework::to_json | ( | JsonPayload & | j, |
| const TimeString & | e ) |
| void rtctk::componentFramework::ToHeaders | ( | RtrClient::Headers & | headers, |
| const RepositoryIf::MetaData & | md, | ||
| bool | add_builtin_md ) |
| AsSpanT< T > rtctk::componentFramework::ToSpan | ( | T & | data | ) |
Simple function that converts types that are convertible to spans to a span.
| data | the original data which will be pointed to by the span |
|
constexpr |
Checks to see if the buffer contains an alternating ramp of values.
This method is used to validate that a buffer contains the test pattern generated by GenerateAlternatingRamp.
| [in] | begin | The iterator pointing to the start of the buffer. |
| [in] | end | The iterator pointing to one element past the end of the buffer. |
| [in] | sample_id | The sample ID of the payload stored in the buffer. |
| [in] | offset | The expected value of the first element in the buffer. |
true of the buffer contains the expected ramp pattern and false otherwise.
|
constexpr |
Checks to see if the buffer contains a ramp of values.
This method is used to validate that a buffer contains the test pattern generated by GenerateRamp.
| [in] | begin | The iterator pointing to the start of the buffer. |
| [in] | end | The iterator pointing to one element past the end of the buffer. |
| [in] | offset | The expected value of the first element in the buffer. |
| [in] | slope | The slope of the line, also interpreted as the delta between elements. |
true of the buffer contains the expected ramp pattern and false otherwise.
|
noexcept |
Constructs an unspecified exception that derives from both the provided object and std::nested_exception.
std::rethrow_if_nested as it terminates the application if there's no nested exception.If there is a current exception (std::current_exception() == true) the nested exception will be stored with the returned exception type.
| E | exception type used to deduce the exception type to construct using std::decay<E>. |
| exception | Exception used to copy or move-construct the unspecified exception. |
| Exceptions | thrown by exception copy/move constructor. |
| void rtctk::componentFramework::WriteDataToFits | ( | const std::string & | filename, |
| const std::any & | buffer ) |
| void rtctk::componentFramework::WriteDataToFits | ( | const std::string & | filename, |
| const std::any & | buffer ) |
| void rtctk::componentFramework::WriteDataToFits | ( | const std::string & | filename, |
| const T & | buffer ) |
Writes a matrix, vector, or span to a FITS image file.
Supports both 2D and 1D buffers. The FITS pixel type is derived from the buffer element type. Boolean buffers are converted to 8-bit integers and marked with the BOOLITEM keyword.
| T | Buffer type (MatrixBuffer, MatrixSpan, vector, or span). |
| [in] | filename | Output FITS file path (overwritten if it exists). |
| [in] | buffer | Data to write as a FITS image. |
| RtctkException | on CFITSIO or filesystem errors. |
| 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 T & | matrix, | ||
| bool | boolean_items = false ) |
Writes data representing a matrix as an image to a FITS file.
| T | The type of the matrix object. Must be MatrixBuffer or MatrixSpan. |
| [in] | filename | Name of the FITS file to create. It will be overwritten if it exists. |
| [in] | matrix | The matrix data to write. |
| [in] | boolean_items | Flag indicating if the BOOLITEM keyword should be written. |
| 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 T & | vector, | ||
| bool | boolean_items = false ) |
Writes data as a 1D image to a FITS file.
| T | The type of the vector object. Must be std::vector or gsl::span. |
| [in] | filename | Name of the FITS file to create. It will be overwritten if it exists. |
| [in] | vector | The vector data to write. |
| [in] | boolean_items | Flag indicating if the BOOLITEM keyword should be written. |
| std::atomic<RepositorySubscriberIf::SubscriptionId> rtctk::componentFramework::g_subscription_id_counter |
|
inlineconstexpr |
|
inlineconstexpr |
Is true if the class contains the type declaration for AdapterIdType.
|
inlineconstexpr |
|
inlineconstexpr |
Is true if the type is a std::complex<U> of some type U.
|
inlineconstexpr |
Is true if the type is a gsl::span type with dynamic size.
|
inlineconstexpr |
Is true if the type is a MatrixBuffer<U> of some type U.
|
inlineconstexpr |
Is true if the type is a MatrixSpan<U> of some type U.
|
inlineconstexpr |
Small helper alias for IsSpanConvertible.
|
inlineconstexpr |
Is true if the type is a gsl::span<U> of some type U.
|
inlineconstexpr |
Is true if the type is a gsl::span type with fixed size.
|
inlineconstexpr |
Is true if the type is a std::array<U> of some type U.
|
inlineconstexpr |
Is true if the class contains the member SUPPORTED_URI_SCHEME.
|
inlineconstexpr |
Is true if the type is a std::vector<U> of some type U.
|
inline |
| const std::unordered_map<std::string, const std::type_info&> rtctk::componentFramework::TYPE_MAP_S2T |
| const std::unordered_map<std::type_index, std::string> rtctk::componentFramework::TYPE_MAP_T2S |