charon-core  0.3.1
VirtualOutputSlot Class Reference
Inheritance diagram for VirtualOutputSlot:

Public Member Functions

 VirtualOutputSlot (int num=0)
 
Slot::CacheType getCacheType () const
 get the cache type from _slot
 
const std::string & getConfig () const
 get the manager config
 
const OutputSlotIntfgetDataSlot () const
 Return a pointer to a real slot.
 
std::string getName () const
 get the Name
 
std::string getType () const
 overloaded getType
 
void setCacheType (Slot::CacheType type)
 set the cache type of _slot
 
virtual void setConfig (std::string conf)
 set manager configuration string
 
void setLoop (bool loop)
 
void setLoopPartner (VirtualInputSlot *loopPartner)
 
- Public Member Functions inherited from VirtualSlot
 VirtualSlot (std::string virtType, int num=0)
 
bool _addTarget (Slot *target)
 set _slot to Casted target
 
bool _removeTarget (Slot *target)
 remove target
 
virtual void finalize ()
 finalize slot More...
 
virtual std::set< Slot * > getTargets () const
 Get pointers to the connected targets.
 
std::string guessType () const
 Try to guess slot type.
 
virtual void load (const ParameterFile &pf, const PluginManagerInterface *man)
 overload Slot functions. Load and save the config string
 
virtual void prepare ()
 prepare slot More...
 
virtual void save (ParameterFile &pf) const
 Save slot connections This function disconnects already established connections in the parameterFile and stores the current one. More...
 
void setVirtualPartnerSlot (VirtualSlot *insl)
 Set corresponding partner VirtualSlot.
 
- Public Member Functions inherited from Slot
 Slot ()
 default constructor
 
bool connect (Slot &target)
 Connect with given slot. More...
 
bool connected () const
 Check if slot is connected.
 
bool connected (Slot &target) const
 Check if slot is connected to given slot. More...
 
bool disconnect ()
 Remove all slot targets.
 
bool disconnect (Slot &target)
 Remove all slot targets.
 
virtual std::string getDisplayName () const
 Get slot display name.
 
bool getMulti () const
 return value of _multiSlot;
 
bool getOptional () const
 return value of _optional;
 
ParameteredObjectgetParent ()
 get parent object
 
const ParameteredObjectgetParent () const
 get parent object (const version)
 
void init (ParameteredObject *parent, std::string name, std::string type)
 initialize parent and name More...
 
void init (ParameteredObject *parent, std::string name, std::string displayname, std::string type)
 initialize parent and name and displayname More...
 
void printError (const std::string &msg) const
 print error with slot name and type info to sout
 
void printInfo (const std::string &msg) const
 print info message with slot name to sout
 
void printWarning (const std::string &msg) const
 print warning message with slot name to sout
 
void raise (const std::string &msg) const
 throw runtime error with slot name and type info
 

Protected Member Functions

virtual bool isValidPartner (VirtualSlot *insl)
 
virtual bool isValidTarget (Slot *target)
 
virtual bool onAddTarget (Slot *target)
 
void onLoad (const ParameterFile &pf, const PluginManagerInterface *man)
 
virtual bool onRemoveTarget (Slot *target)
 
void onSave (ParameterFile &pf) const
 
- Protected Member Functions inherited from VirtualSlot
void setDisplayNameAndType (std::string name, std::string type)
 

Private Attributes

Slot::CacheType _cacheType
 
bool _loop
 
VirtualInputSlot_loopPartner
 
std::string _managerconfig
 

Friends

class VirtualInputSlot
 

Additional Inherited Members

- Public Types inherited from Slot
enum  CacheType { CACHE_INVALID, CACHE_MEM, CACHE_MANAGED }
 slot data cache type More...
 
- Protected Attributes inherited from VirtualSlot
VirtualSlot_partner
 
std::set< Slot * > _target
 
- Protected Attributes inherited from Slot
std::string _displayName
 Slot display name.
 
bool _multiSlot
 flag to mark this slot as a multislot, that can have multiple sources/targets. More...
 
std::string _name
 Slot name.
 
bool _optional
 flag to mark this slot as optional
 
ParameteredObject_parent
 Pointer to parent object.
 
std::string _type
 Slot type.
 

Detailed Description

Definition at line 535 of file Slots.h.


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