Nymph  v1.5.2
Flow-Based Data Processing Framework
Public Member Functions | Protected Types | Protected Attributes | List of all members
KTProcessor Class Reference

#include <KTProcessor.hh>

Inheritance diagram for KTProcessor:
Inheritance graph

Public Member Functions

 KTProcessor (const std::string &name="default-proc-name")
 
virtual ~KTProcessor ()
 
void ConnectASlot (const std::string &signalName, KTProcessor *processor, const std::string &slotName, int groupNum=-1)
 
void ConnectASignal (KTProcessor *processor, const std::string &signalName, const std::string &slotName, int groupNum=-1)
 
void ConnectSignalToSlot (KTSignalWrapper *signal, KTSlotWrapper *slot, int groupNum=-1)
 
template<class XProcessor >
void RegisterSignal (std::string name, XProcessor *signalPtr)
 
template<class XTarget , typename XReturn >
void RegisterSlot (std::string name, XTarget *target, XReturn(XTarget::*funcPtr)())
 
template<class XTarget , typename XReturn , typename XArg1 >
void RegisterSlot (std::string name, XTarget *target, XReturn(XTarget::*funcPtr)(XArg1))
 
template<class XTarget , typename XReturn , typename XArg1 , typename XArg2 >
void RegisterSlot (std::string name, XTarget *target, XReturn(XTarget::*funcPtr)(XArg1, XArg2))
 
KTSignalWrapperGetSignal (const std::string &name)
 
KTSlotWrapperGetSlot (const std::string &name)
 
template<typename XSignalSig >
void RegisterSignal (std::string name, XSignalSig *signalPtr)
 
- Public Member Functions inherited from KTConfigurable
 KTConfigurable (const std::string &name="default-name")
 
virtual ~KTConfigurable ()
 
virtual bool Configure (const scarab::param_node &node)=0
 Should perform parameter store and command-line configurations. More...
 
bool Configure (const std::string &config)
 Implement the option for calling Configure without passing a parameter store node. More...
 
const std::string & GetConfigName () const
 
void SetConfigName (const std::string &name)
 

Protected Types

typedef std::map< std::string, KTSignalWrapper *> SignalMap
 
typedef SignalMap::iterator SigMapIt
 
typedef SignalMap::value_type SigMapVal
 
typedef std::map< std::string, KTSlotWrapper *> SlotMap
 
typedef SlotMap::iterator SlotMapIt
 
typedef SlotMap::value_type SlotMapVal
 

Protected Attributes

SignalMap fSignalMap
 
SlotMap fSlotMap
 
- Protected Attributes inherited from KTConfigurable
KTCommandLineHandlerfCLHandler
 
std::string fConfigName
 

Detailed Description

Definition at line 40 of file KTProcessor.hh.

Member Typedef Documentation

◆ SigMapIt

typedef SignalMap::iterator SigMapIt
protected

Definition at line 44 of file KTProcessor.hh.

◆ SigMapVal

typedef SignalMap::value_type SigMapVal
protected

Definition at line 45 of file KTProcessor.hh.

◆ SignalMap

typedef std::map< std::string, KTSignalWrapper* > SignalMap
protected

Definition at line 43 of file KTProcessor.hh.

◆ SlotMap

typedef std::map< std::string, KTSlotWrapper* > SlotMap
protected

Definition at line 47 of file KTProcessor.hh.

◆ SlotMapIt

typedef SlotMap::iterator SlotMapIt
protected

Definition at line 48 of file KTProcessor.hh.

◆ SlotMapVal

typedef SlotMap::value_type SlotMapVal
protected

Definition at line 49 of file KTProcessor.hh.

Constructor & Destructor Documentation

◆ KTProcessor()

KTProcessor ( const std::string &  name = "default-proc-name")

Definition at line 27 of file KTProcessor.cc.

◆ ~KTProcessor()

~KTProcessor ( )
virtual

Definition at line 34 of file KTProcessor.cc.

Member Function Documentation

◆ ConnectASignal()

void ConnectASignal ( KTProcessor processor,
const std::string &  signalName,
const std::string &  slotName,
int  groupNum = -1 
)

Definition at line 70 of file KTProcessor.cc.

◆ ConnectASlot()

void ConnectASlot ( const std::string &  signalName,
KTProcessor processor,
const std::string &  slotName,
int  groupNum = -1 
)

Definition at line 47 of file KTProcessor.cc.

◆ ConnectSignalToSlot()

void ConnectSignalToSlot ( KTSignalWrapper signal,
KTSlotWrapper slot,
int  groupNum = -1 
)

Definition at line 91 of file KTProcessor.cc.

◆ GetSignal()

KTSignalWrapper * GetSignal ( const std::string &  name)

Definition at line 107 of file KTProcessor.cc.

◆ GetSlot()

KTSlotWrapper * GetSlot ( const std::string &  name)

Definition at line 117 of file KTProcessor.cc.

◆ RegisterSignal() [1/2]

void RegisterSignal ( std::string  name,
XProcessor *  signalPtr 
)

◆ RegisterSignal() [2/2]

void RegisterSignal ( std::string  name,
XSignalSig *  signalPtr 
)

Definition at line 87 of file KTProcessor.hh.

◆ RegisterSlot() [1/3]

void RegisterSlot ( std::string  name,
XTarget *  target,
XReturn(XTarget::*)()  funcPtr 
)

Definition at line 96 of file KTProcessor.hh.

◆ RegisterSlot() [2/3]

void RegisterSlot ( std::string  name,
XTarget *  target,
XReturn(XTarget::*)(XArg1)  funcPtr 
)

Definition at line 110 of file KTProcessor.hh.

◆ RegisterSlot() [3/3]

void RegisterSlot ( std::string  name,
XTarget *  target,
XReturn(XTarget::*)(XArg1, XArg2)  funcPtr 
)

Definition at line 124 of file KTProcessor.hh.

Member Data Documentation

◆ fSignalMap

SignalMap fSignalMap
protected

Definition at line 79 of file KTProcessor.hh.

◆ fSlotMap

SlotMap fSlotMap
protected

Definition at line 81 of file KTProcessor.hh.


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