OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PythonObjectBuilder Class Reference

PyObjects don't distingiush between float and double and int32 and int64. All floating point values are handled as double and all integer values are handled as int64. More...

#include "PythonObjectBuilder.h"

Public Member Functions

 PythonObjectBuilder ()
 
 ~PythonObjectBuilder ()
 
void StartTupleAssemply (int size)
 
void operator<< (CPythonObject *newEntry)
 
CPythonObjectNew getAssembledTuple ()
 
int32_t getInt32Value (const CPythonObject &pValue, const std::string &varName)
 
double getDoubleValue (const CPythonObject &pValue, const std::string &varName)
 
std::string getStringValue (const CPythonObject &pValue, const std::string &varName)
 
bool getBoolValue (const CPythonObject &pValue, const std::string &varName)
 
CPythonObjectBorrowed getTupleItem (const CPythonObject &pValue, int position, const std::string &varName)
 
int32_t getInt32ValueFromTuple (const CPythonObject &pValue, int position, const std::string &varName)
 
double getDoubleValueFromTuple (const CPythonObject &pValue, int position, const std::string &varName)
 
std::string getStringValueFromTuple (const CPythonObject &pValue, int position, const std::string &varName)
 
bool getBoolValueFromTuple (const CPythonObject &pValue, int position, const std::string &varName)
 
CPythonObjectBorrowed getDictItem (const CPythonObject &pValue)
 
CPythonObjectBorrowed getListItem (const CPythonObject &pValue, int position)
 
std::list< int32_t > getInt32List (const CPythonObject &pValue, const std::string &varName)
 
std::list< double > getDoubleList (const CPythonObject &pValue, const std::string &varName)
 
std::list< std::string > getStringList (const CPythonObject &pValue, const std::string &varName)
 
std::list< bool > getBoolList (const CPythonObject &pValue, const std::string &varName)
 
ot::GenericDataStructList getGenericDataStructList (CPythonObject &pValue)
 
ot::GenericDataStruct * getGenericDataStruct (CPythonObject &pValue)
 
std::list< ot::VariablegetVariableList (CPythonObject &pValue)
 
std::optional< ot::VariablegetVariable (CPythonObject &pValue)
 
CPythonObjectNew setInt32 (const int32_t value)
 
CPythonObjectNew setInt64 (const int64_t value)
 
CPythonObjectNew setDouble (double value)
 
CPythonObjectNew setString (const std::string &value)
 
CPythonObjectNew setBool (const bool value)
 
CPythonObjectNew setVariableTuple (const std::list< ot::Variable > &values)
 
CPythonObjectNew setVariableList (const std::list< ot::Variable > &values)
 
CPythonObjectNew setVariableList (const std::vector< ot::Variable > &values)
 
CPythonObjectNew setVariableList (rapidjson::GenericArray< false, rapidjson::Value > &values)
 
CPythonObjectNew setVariable (const ot::Variable &value)
 
CPythonObjectNew setGenericDataStruct (ot::GenericDataStruct *genericDataStruct)
 
CPythonObjectNew setGenericDataStructList (ot::GenericDataStructList &values)
 

Detailed Description

PyObjects don't distingiush between float and double and int32 and int64. All floating point values are handled as double and all integer values are handled as int64.

Constructor & Destructor Documentation

◆ PythonObjectBuilder()

PythonObjectBuilder::PythonObjectBuilder ( )

◆ ~PythonObjectBuilder()

PythonObjectBuilder::~PythonObjectBuilder ( )
inline

Member Function Documentation

◆ getAssembledTuple()

CPythonObjectNew PythonObjectBuilder::getAssembledTuple ( )

◆ getBoolList()

std::list< bool > PythonObjectBuilder::getBoolList ( const CPythonObject & pValue,
const std::string & varName )

◆ getBoolValue()

bool PythonObjectBuilder::getBoolValue ( const CPythonObject & pValue,
const std::string & varName )

◆ getBoolValueFromTuple()

bool PythonObjectBuilder::getBoolValueFromTuple ( const CPythonObject & pValue,
int position,
const std::string & varName )

◆ getDictItem()

CPythonObjectBorrowed PythonObjectBuilder::getDictItem ( const CPythonObject & pValue)

◆ getDoubleList()

std::list< double > PythonObjectBuilder::getDoubleList ( const CPythonObject & pValue,
const std::string & varName )

◆ getDoubleValue()

double PythonObjectBuilder::getDoubleValue ( const CPythonObject & pValue,
const std::string & varName )

◆ getDoubleValueFromTuple()

double PythonObjectBuilder::getDoubleValueFromTuple ( const CPythonObject & pValue,
int position,
const std::string & varName )

◆ getGenericDataStruct()

ot::GenericDataStruct * PythonObjectBuilder::getGenericDataStruct ( CPythonObject & pValue)

◆ getGenericDataStructList()

ot::GenericDataStructList PythonObjectBuilder::getGenericDataStructList ( CPythonObject & pValue)

◆ getInt32List()

std::list< int32_t > PythonObjectBuilder::getInt32List ( const CPythonObject & pValue,
const std::string & varName )

◆ getInt32Value()

int32_t PythonObjectBuilder::getInt32Value ( const CPythonObject & pValue,
const std::string & varName )

◆ getInt32ValueFromTuple()

int32_t PythonObjectBuilder::getInt32ValueFromTuple ( const CPythonObject & pValue,
int position,
const std::string & varName )

◆ getListItem()

CPythonObjectBorrowed PythonObjectBuilder::getListItem ( const CPythonObject & pValue,
int position )

◆ getStringList()

std::list< std::string > PythonObjectBuilder::getStringList ( const CPythonObject & pValue,
const std::string & varName )

◆ getStringValue()

std::string PythonObjectBuilder::getStringValue ( const CPythonObject & pValue,
const std::string & varName )

◆ getStringValueFromTuple()

std::string PythonObjectBuilder::getStringValueFromTuple ( const CPythonObject & pValue,
int position,
const std::string & varName )

◆ getTupleItem()

CPythonObjectBorrowed PythonObjectBuilder::getTupleItem ( const CPythonObject & pValue,
int position,
const std::string & varName )

◆ getVariable()

std::optional< ot::Variable > PythonObjectBuilder::getVariable ( CPythonObject & pValue)

◆ getVariableList()

std::list< ot::Variable > PythonObjectBuilder::getVariableList ( CPythonObject & pValue)

◆ operator<<()

void PythonObjectBuilder::operator<< ( CPythonObject * newEntry)

◆ setBool()

CPythonObjectNew PythonObjectBuilder::setBool ( const bool value)

◆ setDouble()

CPythonObjectNew PythonObjectBuilder::setDouble ( double value)

◆ setGenericDataStruct()

CPythonObjectNew PythonObjectBuilder::setGenericDataStruct ( ot::GenericDataStruct * genericDataStruct)

◆ setGenericDataStructList()

CPythonObjectNew PythonObjectBuilder::setGenericDataStructList ( ot::GenericDataStructList & values)

◆ setInt32()

CPythonObjectNew PythonObjectBuilder::setInt32 ( const int32_t value)

◆ setInt64()

CPythonObjectNew PythonObjectBuilder::setInt64 ( const int64_t value)

◆ setString()

CPythonObjectNew PythonObjectBuilder::setString ( const std::string & value)

◆ setVariable()

CPythonObjectNew PythonObjectBuilder::setVariable ( const ot::Variable & value)

◆ setVariableList() [1/3]

CPythonObjectNew PythonObjectBuilder::setVariableList ( const std::list< ot::Variable > & values)

◆ setVariableList() [2/3]

CPythonObjectNew PythonObjectBuilder::setVariableList ( const std::vector< ot::Variable > & values)

◆ setVariableList() [3/3]

CPythonObjectNew PythonObjectBuilder::setVariableList ( rapidjson::GenericArray< false, rapidjson::Value > & values)

◆ setVariableTuple()

CPythonObjectNew PythonObjectBuilder::setVariableTuple ( const std::list< ot::Variable > & values)

◆ StartTupleAssemply()

void PythonObjectBuilder::StartTupleAssemply ( int size)

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