#include <keyval.h>
Inherits sc::StringKeyVal.
PublicMemberFunctionsParsedKeyVal ()
Create an empty ParsedKeyVal.
ParsedKeyVal (const char *file)
Parse the given input file.
ParsedKeyVal (std::istream &s)
Read input from s.
ParsedKeyVal (IPV2 *)
Use the given IPV2* object.
ParsedKeyVal (const char *, const Ref< KeyVal > &)
This ctor is given a string which is used to form keywords that are sought in the keyval argument.
~ParsedKeyVal ()
Cleanup, deleting the IPV2 object.
void read (const char *)
Read input data from the given filename.
void read (std::istream &)
Read input data from the given stream.
void parse_string (const char *)
Read input data from the given string.
Overridesofparentmembers.
See parent class documentation.
const char * stringrep (const char *)
Returns the string representation of the value assigned to key.
const char * classname (const char *)
Returns the name of the exact class of the object at the keyword.
const char * truekeyword (const char *)
Returns a string which is the actual keyword if some sort of variable substitution takes place
(needed to make multiple references to the same object work in input files).
void errortrace (std::ostream &fp=ExEnv::err0())
Write a message to fp describing the error.
void dump (std::ostream &fp=ExEnv::err0())
Write a message to fp describing the error.
void print_unseen (std::ostream &fp=ExEnv::out0())
Print keywords that were never looked at, if possible.
int have_unseen ()
Return 1 if there were unseen keywords, 0 if there are none, or -1 this keyval doesn't keep track
of unseen keywords.
StaticPublicMemberFunctions
static void cat_files (const char *, const Ref< KeyVal > &, std::ostream &o)
This is like the ParsedKeyVal(constchar*,constRef<KeyVal>&) ctor, but writes the contents of the
files to the given ostream.
AdditionalInheritedMembers