|
MsPASS C++ API
2.4.4.dev122+gb075c5a7b
Defines the C++ API for MsPASS
|
Abstract base class for Metadata concept. More...
#include <BasicMetadata.h>

Public Member Functions | |
| virtual | ~BasicMetadata () |
| virtual int | get_int (const std::string key) const =0 |
| virtual double | get_double (const std::string key) const =0 |
| virtual bool | get_bool (const std::string key) const =0 |
| virtual std::string | get_string (const std::string key) const =0 |
| virtual void | put (const std::string key, const double val)=0 |
| virtual void | put (const std::string key, const int val)=0 |
| virtual void | put (const std::string key, const bool val)=0 |
| virtual void | put (const std::string key, const std::string val)=0 |
Abstract base class for Metadata concept.
A core idea in MsPASS is the idea of a generic header that allows storage and retrieval of arbitrary attributes. This base class forces support for the standard basic data types.
|
inlinevirtual |
Virtual destructor for safe deletion through BasicMetadata pointers.
|
pure virtual |
Return a boolean metadata attribute.
| key | metadata key to fetch. |
| MetadataGetError | or another MsPASSError-derived exception when the key is undefined or cannot be represented as a bool. |
Implemented in mspass::algorithms::amplitudes::Metadata, mspass::algorithms::Metadata, and mspass::utility::Metadata.
|
pure virtual |
Return a floating-point metadata attribute.
| key | metadata key to fetch. |
| MetadataGetError | or another MsPASSError-derived exception when the key is undefined or cannot be represented as a double. |
Implemented in mspass::algorithms::amplitudes::Metadata, mspass::algorithms::Metadata, and mspass::utility::Metadata.
|
pure virtual |
Return an integer-valued metadata attribute.
| key | metadata key to fetch. |
| MetadataGetError | or another MsPASSError-derived exception when the key is undefined or cannot be represented as an int. |
Implemented in mspass::algorithms::amplitudes::Metadata, mspass::algorithms::Metadata, and mspass::utility::Metadata.
|
pure virtual |
Return a string metadata attribute.
| key | metadata key to fetch. |
| MetadataGetError | or another MsPASSError-derived exception when the key is undefined or cannot be represented as a string. |
Implemented in mspass::algorithms::amplitudes::Metadata, mspass::algorithms::Metadata, and mspass::utility::Metadata.
|
pure virtual |
Store a boolean metadata attribute.
| key | metadata key to create or replace. |
| val | value to store. |
Implemented in mspass::algorithms::amplitudes::Metadata, mspass::algorithms::Metadata, and mspass::utility::Metadata.
|
pure virtual |
Store a double-valued metadata attribute.
| key | metadata key to create or replace. |
| val | value to store. |
Implemented in mspass::algorithms::amplitudes::Metadata, mspass::algorithms::Metadata, and mspass::utility::Metadata.
|
pure virtual |
Store an integer-valued metadata attribute.
| key | metadata key to create or replace. |
| val | value to store. |
Implemented in mspass::algorithms::amplitudes::Metadata, mspass::algorithms::Metadata, and mspass::utility::Metadata.
|
pure virtual |
Store a string metadata attribute.
| key | metadata key to create or replace. |
| val | value to store. |
Implemented in mspass::algorithms::amplitudes::Metadata, mspass::algorithms::Metadata, and mspass::utility::Metadata.