version  0.0.1
Defines the C++ API for MsPASS
Loading...
Searching...
No Matches
BasicMetadata.h
1#ifndef _BASICMETADATA_H_
2#define _BASICMETADATA_H_
3#include <string>
4
5namespace mspass {
6namespace utility {
14public:
15 virtual ~BasicMetadata() {};
16 virtual int get_int(const std::string key) const = 0;
17 virtual double get_double(const std::string key) const = 0;
18 virtual bool get_bool(const std::string key) const = 0;
19 virtual std::string get_string(const std::string key) const = 0;
20 virtual void put(const std::string key, const double val) = 0;
21 virtual void put(const std::string key, const int val) = 0;
22 virtual void put(const std::string key, const bool val) = 0;
23 virtual void put(const std::string key, const std::string val) = 0;
24};
25} // namespace utility
26}; // namespace mspass
27#endif
Abstract base class for Metadata concept.
Definition BasicMetadata.h:13