DPsim
Loading...
Searching...
No Matches
Utils.h File Reference
#include <DPsim.h>
#include <iomanip>
#include <pybind11/eigen.h>
#include <pybind11/functional.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
Include dependency graph for Utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T>
py::cpp_function createAttributeSetter (const std::string name)
 
template<typename T>
py::cpp_function createAttributeGetter (const std::string name)
 
CPS::Matrix zeroMatrix (int dim)
 
std::string getAttributeList (CPS::IdentifiedObject &obj)
 
void printAttributes (CPS::IdentifiedObject &obj)
 
void printAttribute (CPS::IdentifiedObject &obj, std::string attr)
 

Function Documentation

◆ createAttributeGetter()

template<typename T>
py::cpp_function createAttributeGetter ( const std::string name)

Definition at line 27 of file Utils.h.

◆ createAttributeSetter()

template<typename T>
py::cpp_function createAttributeSetter ( const std::string name)

Definition at line 20 of file Utils.h.

◆ getAttributeList()

std::string getAttributeList ( CPS::IdentifiedObject & obj)

Definition at line 13 of file Utils.cpp.

◆ printAttribute()

void printAttribute ( CPS::IdentifiedObject & obj,
std::string attr )

Definition at line 74 of file Utils.cpp.

◆ printAttributes()

void printAttributes ( CPS::IdentifiedObject & obj)

Definition at line 70 of file Utils.cpp.

◆ zeroMatrix()

CPS::Matrix zeroMatrix ( int dim)

Definition at line 11 of file Utils.cpp.