DPsim
Loading...
Searching...
No Matches
main.cpp File Reference
#include <iomanip>
#include <pybind11/complex.h>
#include <pybind11/eigen.h>
#include <pybind11/functional.h>
#include <pybind11/iostream.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <DPsim.h>
#include <DPsimPy.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

 PYBIND11_DECLARE_HOLDER_TYPE (T, CPS::AttributePointer< T >)
 
static void systemTopologyAddSingle (DPsim::SystemTopology &sys, const py::handle &item)
 
 PYBIND11_MODULE (dpsimpy, m)
 

Function Documentation

◆ PYBIND11_DECLARE_HOLDER_TYPE()

PYBIND11_DECLARE_HOLDER_TYPE ( T ,
CPS::AttributePointer< T >  )

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( dpsimpy ,
m  )

Compatibility method. Might be removed later when the python examples have been fully adapted.

Compatibility method. Might be removed later when the python examples have been fully adapted.;

Compatibility method. Might be removed later when the python examples have been fully adapted.

Compatibility method. Might be removed later when the python examples have been fully adapted.

Compatibility method. Might be removed later when the python examples have been fully adapted.;

CHECK: It would be nicer if all the attributes of an IdObject were bound as properties so they show up in the documentation and auto-completion. I don't know if this is possible to do because it depends on if the attribute map is filled before or after the code in this file is run. Manually adding the attributes would of course be possible but very tedious to do for all existing components / attributes

Definition at line 40 of file main.cpp.

◆ systemTopologyAddSingle()

static void systemTopologyAddSingle ( DPsim::SystemTopology & sys,
const py::handle & item )
static

Dispatches a single argument of the deprecated SystemTopology.add alias to add_node or add_component depending on its type

Definition at line 29 of file main.cpp.