IComponentInfo interface class is a factory that provides detailed metadata about a component and creates new instances of a component.
More...
#include <hydrocouple.h>
IComponentInfo interface class is a factory that provides detailed metadata about a component and creates new instances of a component.
It must not be implemented directly. It must be either be implemented as an IModelComponent or an Data::IAdaptedOutputFactoryComponent.
◆ ~IComponentInfo()
virtual HydroCouple::IComponentInfo::~IComponentInfo |
( |
| ) |
|
|
pure virtual |
◆ copyright()
virtual string HydroCouple::IComponentInfo::copyright |
( |
| ) |
const |
|
pure virtual |
Component copyright info.
- Returns
- string representing the copyright information associated with this component.
◆ documentation()
virtual list<string> HydroCouple::IComponentInfo::documentation |
( |
| ) |
const |
|
pure virtual |
Documentation associated with this component.
- Returns
- Citations of publication related to this component.
◆ email()
virtual string HydroCouple::IComponentInfo::email |
( |
| ) |
const |
|
pure virtual |
Component developer email.
- Returns
- email as string.
◆ iconFilePath()
virtual string HydroCouple::IComponentInfo::iconFilePath |
( |
| ) |
const |
|
pure virtual |
File path to Component icon. Must be specified relative to the component library.
- Returns
- filePath to icon for component.
◆ libraryFilePath()
virtual string HydroCouple::IComponentInfo::libraryFilePath |
( |
| ) |
const |
|
pure virtual |
File path to Component library.
- Returns
- Path to the library location from which this component was created.
- See also
- setLibraryFilePath()
◆ license()
virtual string HydroCouple::IComponentInfo::license |
( |
| ) |
const |
|
pure virtual |
Component license info.
- Returns
- string representing the license information. HTML tags can be added to it.
◆ setLibraryFilePath()
virtual void HydroCouple::IComponentInfo::setLibraryFilePath |
( |
const string & |
filePath | ) |
|
|
pure virtual |
Sets file path to Component library.
- Parameters
-
filePath | to the libary from which this component was created. |
- See also
- libraryFilePath()
◆ tags()
virtual set<string> HydroCouple::IComponentInfo::tags |
( |
| ) |
const |
|
pure virtual |
tags used to classify this component.
- Returns
- the categorical tags that can be used to classify components. e.g., Hydrology, Groundwater, Finite Volume, Finite difference.
◆ url()
virtual string HydroCouple::IComponentInfo::url |
( |
| ) |
const |
|
pure virtual |
Component developer url.
- Returns
- string representing the url for the developer.
◆ validateLicense() [1/2]
virtual bool HydroCouple::IComponentInfo::validateLicense |
( |
const string & |
licenseInfo, |
|
|
string & |
validationMessage |
|
) |
| |
|
pure virtual |
Checks if license is valid and persists license information.
Developer is responsible for implementing this validation based on a license.
- Parameters
-
licenseInfo | license information to use to register this component. |
validationMessage | A validation message associated with the license validation process. |
- Returns
- true if license is valid otherwise false.
◆ validateLicense() [2/2]
virtual bool HydroCouple::IComponentInfo::validateLicense |
( |
string & |
validationMessage | ) |
|
|
pure virtual |
validateLicense Checks if component is licensed and returns.
- Parameters
-
validationMessage | A validation message associated with the license validation process. |
- Returns
- true if component is licensed otherwise false.
◆ vendor()
virtual string HydroCouple::IComponentInfo::vendor |
( |
| ) |
const |
|
pure virtual |
Component developer information.
- Returns
- Name of vendor the developed this component.
◆ version()
virtual string HydroCouple::IComponentInfo::version |
( |
| ) |
const |
|
pure virtual |
Component version info.
- Returns
- string representing the version of this component.
The documentation for this class was generated from the following file:
- /home/runner/work/HydroCouple/HydroCouple/HydroCouple/include/hydrocouple.h