|
libadc-cxx 1.0.0
Structured logging for scientific computing
|

Modules | |
| Builder_add_host_options | |
| Builder_add_mpi_options | |
Classes | |
| class | adc::builder_api |
| The builder api is used to construct structured log (json) messages that follow naming conventions. More... | |
| class | adc::factory |
| provides publishers and builders of application metadata. More... | |
| class | adc::multi_publisher_api |
| Interface for a group of publishers all being fed the same message(s). More... | |
| class | adc::publisher_api |
| Publisher plugin interface. More... | |
| struct | adc::version |
| A version with tags list. More... | |
| struct | adc::field |
| class | adc::var_string |
| return string for printing from variant v. More... | |
Macros | |
| #define | ADC_SUPPORT_GPU_FLOATS 0 |
| Set to 1 if 8/16 float types for gpus are supported. ADC_SUPPORT_GPU_FLOATS should be defined by build-time configuration. | |
| #define | ADC_SUPPORT_EXTENDED_FLOATS 0 |
| Set to 1 if 80 bit floats for cpus are supported. ADC_SUPPORT_EXTENDED_FLOATS should be defined by build-time configuration. | |
| #define | ADC_SUPPORT_QUAD_FLOATS 0 |
| Set to 1 if 128 bit floats for cpus are supported. ADC_SUPPORT_QUAD_FLOATS should be defined by build-time configuration. | |
| #define | ADC_BOOST_JSON_PUBLIC 0 |
| include boost::json support in the API ADC_BOOST_JSON_PUBLIC could be defined by build-time configuration. If it is, this library forces boost::json and other boost dependencies on the build of any application which uses it. | |
Typedefs | |
| typedef std::map< const std::string, std::shared_ptr< publisher_api > > | adc::plugin_map |
| name/plugin map. | |
| typedef std::vector< std::shared_ptr< publisher_api > > | adc::publisher_vector |
| list of publishers | |
| typedef std::pair< std::string, std::shared_ptr< publisher_api > > | adc::pair_string_publisher_api |
| named publisher | |
| typedef std::variant< bool, char, char16_t, char32_t, int8_t, int16_t, int32_t, int64_t, uint8_t, uint16_t, uint32_t, uint64_t, float, double, std::complex< float >, std::complex< double >, std::array< int64_t, 2 >, std::string, std::shared_ptr< bool[]>, std::shared_ptr< char[]>, std::shared_ptr< char16_t[]>, std::shared_ptr< char32_t[]>, std::shared_ptr< int8_t[]>, std::shared_ptr< int16_t[]>, std::shared_ptr< int32_t[]>, std::shared_ptr< int64_t[]>, std::shared_ptr< uint8_t[]>, std::shared_ptr< uint16_t[]>, std::shared_ptr< uint32_t[]>, std::shared_ptr< uint64_t[]>, std::shared_ptr< float[]>, std::shared_ptr< double[]>, std::shared_ptr< std::complex< float >[]>, std::shared_ptr< std::complex< double >[]>, std::shared_ptr< std::string[]> > | adc::variant |
| variant for querying builder data. | |
Functions | |
| std::string | adc::format_timespec_8601 (struct timespec &ts) |
| std::string | adc::format_timespec_utc_ns (struct timespec &ts) |
| std::vector< std::string > | adc::consolidate_multifile_logs (std::string_view dir, std::string_view match) |
| std::string | adc::get_default_affinity () |
| const std::string | adc::to_string (scalar_type st) |
| get the string representation of a scalar_type value | |
| const std::string | adc::to_string (float) |
| get string of float using to_chars. | |
| const std::string | adc::to_string (double) |
| get string of double using to_chars. | |
| const std::string | adc::to_string (void *data, scalar_type cptype, size_t count) |
| get string of array | |
| scalar_type | adc::scalar_type_from_name (const std::string &name) |
| get the enum representation of a scalar_type string | |
| int | adc::test_enum_strings () |
| return non-zero if to_string and enum scalar_type are inconsisent. | |
Variables | |
| version | adc::builder_api_version ("1.0.0", {"none"}) |
| version | adc::adc_factory_version ("1.0.0", {"none"}) |
| version | adc::multi_publisher_version (MULTI_PUBLISHER_VERSION, MULTI_PUBLISHER_TAGS) |
| version | adc::publisher_api_version ("1.0.0", {"none"}) |
| version | adc::enum_version ("1.0.0", {"none"}) |
| the version number of enum scalar_type and object_type | |
| #define ADC_SUPPORT_GPU_FLOATS 0 |
| #define ADC_SUPPORT_EXTENDED_FLOATS 0 |
| #define ADC_SUPPORT_QUAD_FLOATS 0 |
| #define ADC_BOOST_JSON_PUBLIC 0 |
| typedef std::map< const std::string, std::shared_ptr<publisher_api> > adc::plugin_map |
name/plugin map.
Definition at line 97 of file publisher.hpp.
| typedef std::vector< std::shared_ptr<publisher_api> > adc::publisher_vector |
list of publishers
Definition at line 100 of file publisher.hpp.
| typedef std::pair<std::string, std::shared_ptr<publisher_api> > adc::pair_string_publisher_api |
named publisher
Definition at line 103 of file publisher.hpp.
| typedef std::variant< bool, char, char16_t, char32_t, int8_t, int16_t, int32_t, int64_t, uint8_t, uint16_t, uint32_t, uint64_t, float, double, std::complex<float>, std::complex<double>, std::array<int64_t, 2>, std::string, std::shared_ptr<bool[]>, std::shared_ptr<char[]>, std::shared_ptr<char16_t[]>, std::shared_ptr<char32_t[]>, std::shared_ptr<int8_t[]>, std::shared_ptr<int16_t[]>, std::shared_ptr<int32_t[]>, std::shared_ptr<int64_t[]>, std::shared_ptr<uint8_t[]>, std::shared_ptr<uint16_t[]>, std::shared_ptr<uint32_t[]>, std::shared_ptr<uint64_t[]>, std::shared_ptr<float[]>, std::shared_ptr<double[]>, std::shared_ptr<std::complex<float>[]>, std::shared_ptr<std::complex<double>[]>, std::shared_ptr<std::string[]> > adc::variant |
variant for querying builder data.
Any changes here must be reflected in the var_string operations.
| enum adc::scalar_type |
field types for scientific data encode/decode with json.
Bit precision and C vs specialized strings are preserved when data is tagged following this enum. The add() functions on the builder api automatically tag with this.
| enum adc::key_type |
| enum adc::object_type |
| std::string adc::format_timespec_8601 | ( | struct timespec & | ts | ) |
Definition at line 50 of file builder.ipp.
| std::string adc::format_timespec_utc_ns | ( | struct timespec & | ts | ) |
Definition at line 65 of file builder.ipp.
| std::vector< std::string > adc::consolidate_multifile_logs | ( | std::string_view | dir, |
| std::string_view | match | ||
| ) |
| std::string adc::get_default_affinity | ( | ) |
Get the default processor affinity list. This may be useful to publishers that spawn processes.
Definition at line 81 of file builder.ipp.
| ADC_VISIBLE const std::string adc::to_string | ( | scalar_type | st | ) |
| ADC_VISIBLE const std::string adc::to_string | ( | float | f | ) |
| ADC_VISIBLE const std::string adc::to_string | ( | double | f | ) |
| ADC_VISIBLE const std::string adc::to_string | ( | void * | data, |
| scalar_type | cptype, | ||
| size_t | count | ||
| ) |
| ADC_VISIBLE scalar_type adc::scalar_type_from_name | ( | const std::string & | name | ) |
| ADC_VISIBLE int adc::test_enum_strings | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
the version number of enum scalar_type and object_type