1 #ifndef _ANTELOPE_PF_H_
2 #define _ANTELOPE_PF_H_
6 #include "mspass/utility/Metadata.h"
18 const std::string pftbl_key(
"AntelopePfTbl");
19 const std::string pfarr_key(
"AntelopePfArr");
103 std::list<std::string>
get_tbl(
const std::string key)
const;
118 std::list<std::string>
arr_keys()
const;
120 std::list<std::string>
tbl_keys()
const;
151 std::map<std::string,std::list<std::string> > pftbls;
153 std::map<std::string, AntelopePf> pfbranches;
170 message=std::string(
"AntelopePfError->undefined error");
174 message=
"AntelopePfError object message="+mess;
178 message=std::string(
"AntelopePfError object message=")+mess;
181 std::cerr <<
message<<std::endl;
Error class for AntelopePf object.
Definition: AntelopePf.h:167
C++ object version of a parameter file.
Definition: AntelopePf.h:62
std::list< std::string > arr_keys() const
Definition: AntelopePf.cc:417
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:401
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:409
AntelopePf & operator=(const AntelopePf &parent)
Definition: AntelopePf.cc:433
std::list< std::string > tbl_keys() const
Definition: AntelopePf.cc:425
Metadata ConvertToMetadata()
Return an object with only simple name:value pairs.
Definition: AntelopePf.cc:444
AntelopePf()
Definition: AntelopePf.h:65
void pfwrite(std::ostream &ofs)
save result in a pf format.
Base class for error object thrown by MsPASS library routines.
Definition: MsPASSError.h:40
std::string message
Definition: MsPASSError.h:109