frepple::CommandReadXMLString Class Reference

This command is used for reading XML input from a certain string. More...

#include <model.h>

Inheritance diagram for frepple::CommandReadXMLString:

List of all members.

Public Member Functions

 CommandReadXMLString (const bool v=true, const bool o=false)
 CommandReadXMLString (const string &s, const bool v=true, const bool o=false)
void endElement (XMLInput &, const Attribute &, const DataElement &)
void execute ()
string getData ()
bool getValidate ()
bool getValidateOnly ()
void setData (const string &v)
void setValidate (bool b)
void setValidateOnly (bool b)

Static Public Member Functions

static PyObject * executePython (PyObject *, PyObject *)

Detailed Description

This command is used for reading XML input from a certain string.

The command is not thread-safe: multiple threads can simultaneously access the same objects.

Definition at line 4360 of file model.h.


Constructor & Destructor Documentation

frepple::CommandReadXMLString::CommandReadXMLString ( const string &  s,
const bool  v = true,
const bool  o = false 
) [inline]

Constructor.

Definition at line 4364 of file model.h.

frepple::CommandReadXMLString::CommandReadXMLString ( const bool  v = true,
const bool  o = false 
) [inline]

Default constructor.

Definition at line 4368 of file model.h.


Member Function Documentation

void frepple::CommandReadXMLString::endElement ( XMLInput ,
const Attribute ,
const DataElement  
)
void frepple::CommandReadXMLString::execute (  )  [virtual]

The commit action reads the input.

Implements frepple::utils::Command.

Definition at line 98 of file model/actions.cpp.

PyObject * frepple::CommandReadXMLString::executePython ( PyObject *  self,
PyObject *  args 
) [static]

Python interface for this command.

Definition at line 118 of file model/actions.cpp.

string frepple::CommandReadXMLString::getData (  )  [inline]

Returns the data string.

Definition at line 4375 of file model.h.

bool frepple::CommandReadXMLString::getValidate (  )  [inline]

Returns true if the schema validation has been enabled.

Definition at line 4381 of file model.h.

bool frepple::CommandReadXMLString::getValidateOnly (  )  [inline]

Returns whether we only need to validate to data, or really execute them too.

Definition at line 4388 of file model.h.

void frepple::CommandReadXMLString::setData ( const string &  v  )  [inline]

Updates the data string.

Definition at line 4372 of file model.h.

void frepple::CommandReadXMLString::setValidate ( bool  b  )  [inline]

Enables or disables the validation.

Definition at line 4378 of file model.h.

void frepple::CommandReadXMLString::setValidateOnly ( bool  b  )  [inline]

Only validate the input, do not really execute it.

Definition at line 4384 of file model.h.


The documentation for this class was generated from the following files:

Documentation generated for frePPLe by  doxygen