pelib
2.0.0
|
#include <iostream>
#include <pelib/parser.h>
#include <pelib/output.h>
#include <pelib/AmplOutput.hpp>
Go to the source code of this file.
Defines | |
#define | debug(expr) cerr << "[" << __FILE__ << ":" << __FUNCTION__ << ":" << __LINE__ << "] " << #expr << " = \"" << expr << "\"." << endl; |
Functions | |
pelib::Record * | pelib_parse (std::istream &cin, size_t argc, char **argv) |
void | pelib_dump (std::ostream &cout, std::map< const char *, Record * > records, size_t argc, char **argv) |
void | pelib_delete (Record *rec) |
#define debug | ( | expr | ) | cerr << "[" << __FILE__ << ":" << __FUNCTION__ << ":" << __LINE__ << "] " << #expr << " = \"" << expr << "\"." << endl; |
Definition at line 36 of file ampl_output.cpp.
void pelib_delete | ( | pelib::Record * | ) |
Deletes a Record produced by pelib_parse
Definition at line 56 of file ampl_output.cpp.
void pelib_dump | ( | std::ostream & | cout, |
std::map< const char *, pelib::Record * > | records, | ||
size_t | argc, | ||
char ** | argv | ||
) |
Writes objects contained in records to output stream. Options can be passed using the string array argv and the number of arguments in argc. Note that call elements of argv and argv itself are freed after this function terminates.
Definition at line 49 of file ampl_output.cpp.
pelib::Record* pelib_parse | ( | std::istream & | cin, |
size_t | argc, | ||
char ** | argv | ||
) |
Parses the content of an input stream with string options and produces a class instance derived from pelib::Record. Used for dynamic library parsers
Definition at line 41 of file ampl_output.cpp.