|
solarpowerlog trunk
|
#include <InverterBase.h>


Public Member Functions | |
| IInverterBase (const string &name, const string &configurationpath, const string &role) | |
| virtual | ~IInverterBase () |
| virtual const std::string & | GetName (void) const |
| virtual CCapability * | GetConcreteCapability (const string &identifier) |
| virtual ICapaIterator * | GetCapaNewIterator () |
| virtual bool | CheckConfig ()=0 |
| virtual const std::string & | GetConfigurationPath () const |
| virtual IConnect * | getConnection (void) const |
Protected Member Functions | |
| virtual void | AddCapability (const string &id, CCapability *capa) |
| Add a Capability for the inverter. | |
| virtual void | AddCapability (CCapability *capa) |
| Add a Capability for the inverter. | |
| virtual map< string, CCapability * >::iterator | GetCapabilityIterator (void) |
| virtual map< string, CCapability * >::iterator | GetCapabilityLastIterator (void) |
Protected Attributes | |
| std::string | configurationpath |
| std::string | name |
| IConnect * | connection |
| map< string, CCapability * > | CapabilityMap |
| ILogger | logger |
| The Logger Class for Debugging, Error reporting etc... | |
Friends | |
| class | ICapaIterator |
Inverter Interface ....
Definition at line 227 of file InverterBase.h.
| IInverterBase::IInverterBase | ( | const string & | name, |
| const string & | configurationpath, | ||
| const string & | role | ||
| ) |
Constructor for the Inverter Interface. The baseclass does this already for their concrete Implementations:
| name | of the Inverter (name as in the config) |
| configurationpath | is the path to access this inverters config |
| role | specifies the role in which the inverter is used. Currently this is only used to setup the correct logging path for the associated logger. use "inverter" for inverters and "datafilter" for filters. |
Definition at line 53 of file InverterBase.cpp.

| IInverterBase::~IInverterBase | ( | ) | [virtual] |
Definition at line 90 of file InverterBase.cpp.
| void IInverterBase::AddCapability | ( | const string & | id, |
| CCapability * | capa | ||
| ) | [protected, virtual] |
Add a Capability for the inverter.
Definition at line 137 of file InverterBase.cpp.
| virtual void IInverterBase::AddCapability | ( | CCapability * | capa | ) | [inline, protected, virtual] |
Add a Capability for the inverter.
Definition at line 293 of file InverterBase.h.

| virtual bool IInverterBase::CheckConfig | ( | ) | [pure virtual] |
| map< string, CCapability * >::iterator IInverterBase::GetCapabilityIterator | ( | void | ) | [protected, virtual] |
returns a iterator of the Capabilties. The iterator is inizialized at the begin of the map.
Definition at line 115 of file InverterBase.cpp.
| map< string, CCapability * >::iterator IInverterBase::GetCapabilityLastIterator | ( | void | ) | [protected, virtual] |
return a iterator of the Capabilites. The iterator is placed at the end of the map This allows a end-of-list check
Definition at line 123 of file InverterBase.cpp.
| ICapaIterator * IInverterBase::GetCapaNewIterator | ( | ) | [virtual] |
Get a Iterator over all Capability. Filters may overload it to provide a CCapaNestedIterator.
Reimplemented in IDataFilter.
Definition at line 109 of file InverterBase.cpp.
| CCapability * IInverterBase::GetConcreteCapability | ( | const string & | identifier | ) | [virtual] |
check for a specific capability and return the pointer to it returns NULL if it is not registered.
Reimplemented in IDataFilter.
Definition at line 129 of file InverterBase.cpp.
| virtual const std::string& IInverterBase::GetConfigurationPath | ( | ) | const [inline, virtual] |
Definition at line 276 of file InverterBase.h.
| virtual IConnect* IInverterBase::getConnection | ( | void | ) | const [inline, virtual] |
Definition at line 281 of file InverterBase.h.
| const std::string & IInverterBase::GetName | ( | void | ) | const [virtual] |
Getter for the name property. (Inverter Name equals to the one given in the config)
Definition at line 104 of file InverterBase.cpp.
friend class ICapaIterator [friend] |
Definition at line 231 of file InverterBase.h.
map<string, CCapability*> IInverterBase::CapabilityMap [protected] |
Definition at line 328 of file InverterBase.h.
std::string IInverterBase::configurationpath [protected] |
Configuration path as determined on start -- for easier fetching the config.
Definition at line 307 of file InverterBase.h.
IConnect* IInverterBase::connection [protected] |
Definition at line 316 of file InverterBase.h.
ILogger IInverterBase::logger [protected] |
The Logger Class for Debugging, Error reporting etc...
Definition at line 331 of file InverterBase.h.
std::string IInverterBase::name [protected] |
Inverter Name -- as in config
Definition at line 309 of file InverterBase.h.