pelib  2.0.0
src/ampl_input.cpp File Reference
#include <iostream>
#include <pelib/parser.h>
#include <pelib/output.h>
#include <pelib/AmplInput.hpp>
Include dependency graph for ampl_input.cpp:

Go to the source code of this file.

Classes

struct  filter_t

Defines

#define debug(expr)   cerr << "[" << __FILE__ << ":" << __FUNCTION__ << ":" << __LINE__ << "] " << #expr << " = \"" << expr << "\"." << endl;

Functions

pelib::Recordpelib_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 Documentation

#define debug (   expr)    cerr << "[" << __FILE__ << ":" << __FUNCTION__ << ":" << __LINE__ << "] " << #expr << " = \"" << expr << "\"." << endl;

Definition at line 39 of file ampl_input.cpp.


Function Documentation

Deletes a Record produced by pelib_parse

Definition at line 65 of file ampl_input.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 58 of file ampl_input.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 49 of file ampl_input.cpp.