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