13 spdlog::level::level_enum logLevel)
15 sampleLength, logLevel),
16 name, downsampling) {}
20 Bool syncOnSimulationStart,
34 idx, waitForOnWrite, name, unit);
virtual const std::type_info & getType()=0
Get the type of this attribute.
AttributePointer< AttributeBase > Ptr
std::vector< std::tuple< CPS::AttributeBase::Ptr, UInt, bool, bool > > mImportAttrsDpsim
virtual void addImport(CPS::AttributeBase::Ptr attr, bool blockOnRead=false, bool syncOnSimulationStart=true)
virtual void addExport(CPS::AttributeBase::Ptr attr)
std::vector< std::tuple< CPS::AttributeBase::Ptr, UInt > > mExportAttrsDpsim
InterfaceQueued(std::shared_ptr< InterfaceWorker > intf, const String &name="", UInt downsampling=1)
std::shared_ptr< InterfaceWorker > mInterfaceWorker
virtual void printVillasSignals() const
virtual void importAttribute(CPS::AttributeBase::Ptr attr, UInt idx, Bool blockOnRead=false, Bool syncOnSimulationStart=true, const String &name="", const String &unit="")
configure an attribute import
InterfaceVillas(const String &nodeConfig, UInt queueLength=512, UInt sampleLength=64, const String &name="", UInt downsampling=1, spdlog::level::level_enum logLevel=spdlog::level::level_enum::info)
create a new InterfaceVillas instance
virtual void exportAttribute(CPS::AttributeBase::Ptr attr, UInt idx, Bool waitForOnWrite, const String &name="", const String &unit="")
configure an attribute export
static std::shared_ptr< InterfaceVillas > make(Args &&...args)