Header file for auxilary classes. More...
#include "Python.h"#include "datetime.h"#include <iostream>#include <fstream>#include <sstream>#include <stdexcept>#include <ctime>#include <assert.h>#include <typeinfo>#include <list>#include <map>#include <set>#include <string>#include <stack>#include <vector>#include <algorithm>#include "frepple/tags.h"#include "frepple/entity.h"#include "pythonutils.h"Go to the source code of this file.
Classes | |
| class | frepple::utils::Association< A, B, C > |
| This template class represents a data structure for a load or flow network. More... | |
| class | frepple::utils::Attribute |
| A class to model keyword instances. More... | |
| class | frepple::utils::AttributeList |
| This class represents a dictionary of keyword + value pairs. More... | |
| class | frepple::utils::Command |
| Abstract base class for all commands. More... | |
| class | frepple::utils::CommandList |
| A container command to group a series of commands together. More... | |
| class | frepple::utils::CommandLoadLibrary |
| Command to dynamically load a shared library in frePPLe. More... | |
| class | frepple::utils::Association< A, B, C >::ListB::const_iterator |
| An iterator over the associated objects. More... | |
| class | frepple::utils::Association< A, B, C >::ListA::const_iterator |
| An iterator over the associated objects. More... | |
| class | frepple::utils::DataElement |
| This abstract class represents a attribute and value pair for updating objects in frePPLe. More... | |
| class | frepple::utils::DataException |
| An exception of this type is thrown when data errors are found. More... | |
| class | frepple::utils::Date |
| This class represents a date and time with an accuracy of one second. More... | |
| class | frepple::utils::DateRange |
| This class defines a date-range, i.e. a start-date and end-date pair. More... | |
| class | frepple::utils::Environment |
| This class groups some functions used to interact with the operating system environment. More... | |
| class | frepple::utils::Functor |
| This abstract class is the base class used for callbacks. More... | |
| class | frepple::utils::FunctorInstance< T, U > |
| This class represents an object subscribing to a signal. More... | |
| class | frepple::utils::FunctorStatic< T, U > |
| This class represents a static subscription to a signal. More... | |
| class | frepple::utils::HasDescription |
| This is a decorator class for the main objects. More... | |
| class | frepple::utils::HasHierarchy< T > |
| This is a base class for the main objects. More... | |
| class | frepple::utils::HasName< T > |
| Base class for objects using a string as their primary key. More... | |
| struct | frepple::utils::indent |
| class | frepple::utils::Association< A, B, C >::ListB::iterator |
| An iterator over the associated objects. More... | |
| class | frepple::utils::Association< A, B, C >::ListA::iterator |
| An iterator over the associated objects. More... | |
| class | frepple::utils::HasName< T >::iterator |
| This class models a STL-like iterator that allows us to iterate over the named entities in a simple and safe way. More... | |
| class | frepple::utils::Keyword |
| This class defines a keyword for the frePPLe data model. More... | |
| class | frepple::utils::LibraryUtils |
| This class holds functions that used for maintenance of the library. More... | |
| class | frepple::utils::Association< A, B, C >::List |
| A abstract base class for the internal representation of the association lists. | |
| class | frepple::utils::Association< A, B, C >::ListA |
| A list type of the "first" / "from" part of the association. More... | |
| class | frepple::utils::Association< A, B, C >::ListB |
| A list type of the "second" / "to" part of the association. More... | |
| class | frepple::utils::LogicException |
| An exception of this type is thrown when the library gets in an inconsistent state from which the normal course of action can't continue. More... | |
| class | frepple::utils::HasHierarchy< T >::memberIterator |
| This class models an STL-like iterator that allows us to iterate over the members. More... | |
| class | frepple::utils::MetaCategory |
| A MetaCategory instance represents metadata for a category of object. More... | |
| class | frepple::utils::MetaClass |
| This class stores metadata about the classes in the library. The stored information goes well beyond the standard 'type_info'. More... | |
| class | frepple::utils::Mutex |
| This class is a wrapper around platform specific mutex functions. More... | |
| class | frepple::utils::Association< A, B, C >::Node |
| A base class for the class representing the association itself. More... | |
| class | frepple::utils::NonCopyable |
| Class NonCopyable is a base class. Derive your own class from it when you want to prohibit copy construction and copy assignment. More... | |
| class | frepple::utils::Object |
| Object is the abstract base class for the main entities. More... | |
| class | frepple::utils::PythonType |
| This class is a wrapper around the type information in Python. More... | |
| class | frepple::utils::RuntimeException |
| An exception of this type is thrown when the library runs into problems that are specific at runtime. These could either be memory problems, threading problems, file system problems, etc... More... | |
| class | frepple::utils::ScopeMutexLock |
| This is a convenience class that makes it easy (and exception-safe) to lock a mutex in a scope. More... | |
| class | frepple::utils::Tags |
| This class holds a collection of all XML tags used by frepple. More... | |
| class | frepple::utils::TimePeriod |
| This class represents a time duration with an accuracy of one second. More... | |
| class | frepple::utils::Timer |
| This class is used to measure the processor time used by the program. More... | |
| class | frepple::utils::Tree |
| This class implements a binary tree data structure. It is used as a container for entities keyed by their name. More... | |
| class | frepple::utils::Tree::TreeNode |
| This class represents a node in the tree. More... | |
| class | frepple::utils::XMLAttributeList |
| This class represents a list of XML attributes. More... | |
| class | frepple::utils::XMLElement |
| This class represents an XML element being read in from the input file. More... | |
| class | frepple::utils::XMLEscape |
| class | frepple::utils::XMLInput |
| This class will read in an XML-file and call the appropriate handler functions of the Object classes and objects. More... | |
| class | frepple::utils::XMLInputFile |
| This class reads XML data from a file system. More... | |
| class | frepple::utils::XMLInputString |
| This class reads XML data from a string. More... | |
| class | frepple::utils::XMLOutput |
| Base class for writing XML formatted data to an output stream. More... | |
| class | frepple::utils::XMLOutputFile |
| This class writes XML data to a flat file. More... | |
| class | frepple::utils::XMLOutputString |
| This class writes XML data to a string. More... | |
Namespaces | |
| namespace | frepple |
Core namespace. | |
| namespace | frepple::utils |
Core namespace. | |
Defines | |
| #define | DECLARE_EXPORT |
| #define | MODULE_EXPORT extern "C" |
| #define | PACKAGE_VERSION "0.7.1" |
| #define | PY_SSIZE_T_MAX INT_MAX |
| #define | PY_SSIZE_T_MIN INT_MIN |
| #define | ROUNDING_ERROR 0.000001 |
Typedefs | |
| typedef unsigned int | frepple::utils::hashtype |
| typedef int | Py_ssize_t |
Enumerations | |
| enum | frepple::utils::Action { frepple::utils::ADD = 0, frepple::utils::CHANGE = 1, frepple::utils::REMOVE = 2, frepple::utils::ADD_CHANGE = 3 } |
| enum | frepple::utils::mode { frepple::utils::DEFAULT = 0, frepple::utils::REFERENCE = 1, frepple::utils::NOHEADER = 2, frepple::utils::FULL = 3 } |
| enum | frepple::utils::Signal { frepple::utils::SIG_ADD = 0, frepple::utils::SIG_REMOVE = 1 } |
Functions | |
| PyObject * | frepple::utils::call_handler (PyObject *self, PyObject *args, PyObject *kwds) |
| int | frepple::utils::compare_handler (PyObject *self, PyObject *other) |
| PyObject * | frepple::utils::getattro_handler (PyObject *self, PyObject *name) |
| PyObject * | frepple::utils::iternext_handler (PyObject *self) |
| template<class T > | |
| ostream & | frepple::utils::operator<< (ostream &o, const HasName< T > *n) |
| template<class T > | |
| ostream & | frepple::utils::operator<< (ostream &o, const HasName< T > &n) |
| ostream & | frepple::utils::operator<< (ostream &os, const XMLEscape &x) |
| ostream & | frepple::utils::operator<< (ostream &os, const DateRange &dr) |
| ostream & | frepple::utils::operator<< (ostream &os, const Date &d) |
| ostream & | frepple::utils::operator<< (ostream &os, const TimePeriod &t) |
| ostream & | frepple::utils::operator<< (ostream &os, const Timer &t) |
| ostream & | frepple::utils::operator<< (ostream &os, const indent &i) |
| ostream & | frepple::utils::operator<< (ostream &os, const Signal &d) |
| ostream & | frepple::utils::operator<< (ostream &os, const Action &d) |
| int | frepple::utils::setattro_handler (PyObject *self, PyObject *name, PyObject *value) |
| PyObject * | frepple::utils::str_handler (PyObject *self) |
Variables | |
| ostream | frepple::utils::logger |
Header file for auxilary classes.
Definition in file utils.h.
| #define DECLARE_EXPORT |
| #define MODULE_EXPORT extern "C" |
Signature used for a module initialization routine. It assures the function is exported appropriately when running on Windows.
A module will need to define a function with the following prototype:
MODULE_EXPORT string initialize(const CommandLoadLibrary::ParameterList&);
| #define PACKAGE_VERSION "0.7.1" |
| #define ROUNDING_ERROR 0.000001 |
| typedef int Py_ssize_t |
1.6.1