pelib
2.0.0
|
#include <iostream>
#include <pelib/parser.h>
#include <pelib/output.h>
#include <pelib/XMLSchedule.hpp>
#include <pelib/Taskgraph.hpp>
Go to the source code of this file.
Defines | |
#define | debug(expr) cerr << "[" << __FILE__ << ":" << __FUNCTION__ << ":" << __LINE__ << "] " << #expr << " = \"" << expr << "\"." << endl; |
#define | check(var, core, task) { Schedule::table::iterator ii = ((Schedule::table&)var).begin(); std::advance(ii, core); Schedule::sequence::iterator jj = ii->second.begin(); std::advance(jj, task); debug(jj->second.first->getName()); } |
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 *obj) |
#define check | ( | var, | |
core, | |||
task | |||
) | { Schedule::table::iterator ii = ((Schedule::table&)var).begin(); std::advance(ii, core); Schedule::sequence::iterator jj = ii->second.begin(); std::advance(jj, task); debug(jj->second.first->getName()); } |
#define debug | ( | expr | ) | cerr << "[" << __FILE__ << ":" << __FUNCTION__ << ":" << __LINE__ << "] " << #expr << " = \"" << expr << "\"." << endl; |
Definition at line 37 of file schedule-xml.cpp.
void pelib_delete | ( | pelib::Record * | ) |
Deletes a Record produced by pelib_parse
Definition at line 87 of file schedule-xml.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 schedule-xml.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 schedule-xml.cpp.