pelib  2.0.0
src/taskgraph-ampl_output.cpp File Reference
#include <iostream>
#include <pelib/parser.h>
#include <pelib/output.h>
#include <pelib/AmplOutput.hpp>
#include <pelib/Taskgraph.hpp>
Include dependency graph for taskgraph-ampl_output.cpp:

Go to the source code of this file.

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 *obj)

Define Documentation

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

Definition at line 37 of file taskgraph-ampl_output.cpp.


Function Documentation

Deletes a Record produced by pelib_parse

Definition at line 66 of file taskgraph-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 50 of file taskgraph-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 42 of file taskgraph-ampl_output.cpp.