4#include "mspass/utility/Metadata.h"
18const std::string pftbl_key(
"AntelopePfTbl");
19const std::string pfarr_key(
"AntelopePfArr");
102 std::list<std::string>
get_tbl(
const std::string key)
const;
117 std::list<std::string>
arr_keys()
const;
119 std::list<std::string>
tbl_keys()
const;
151 std::map<std::string, std::list<std::string>> pftbls;
153 std::map<std::string, AntelopePf> pfbranches;
169 message = std::string(
"AntelopePfError->undefined error");
172 message =
"AntelopePfError object message=" + mess;
175 message = std::string(
"AntelopePfError object message=") + mess;
177 void log_error() { std::cerr <<
message << std::endl; };
194 const std::string tag);
Error class for AntelopePf object.
Definition AntelopePf.h:166
C++ object version of a parameter file.
Definition AntelopePf.h:61
std::list< std::string > arr_keys() const
Definition AntelopePf.cc:400
AntelopePf(std::string pfbase)
Construct from a base pf name.
std::list< std::string > get_tbl(const std::string key) const
get a Tbl component by key.
Definition AntelopePf.cc:385
AntelopePf(std::list< std::string > lines)
Construct from a set of text lines.
AntelopePf get_branch(const std::string key) const
used for subtrees (nested Arrs in antelope)
Definition AntelopePf.cc:392
AntelopePf & operator=(const AntelopePf &parent)
Definition AntelopePf.cc:414
std::list< std::string > tbl_keys() const
Definition AntelopePf.cc:407
Metadata ConvertToMetadata()
Return an object with only simple name:value pairs.
Definition AntelopePf.cc:423
AntelopePf()
Definition AntelopePf.h:64
void pfwrite(std::ostream &ofs)
save result in a pf format.
Base class for error object thrown by MsPASS library routines.
Definition MsPASSError.h:38
std::string message
Definition MsPASSError.h:108