10 #include <adtf_base.h>
16 #define DEVTB_BUS_DB_PARSER_FILE_EXT "dll"
18 #define DEVTB_BUS_DB_PARSER_FILE_EXT "so"
24 #define CID_DEVTB_MULTIBUSDB_PARSER "multibus_database_parser.service.devicetb.cid"
87 virtual bool Accept(
const char* strFileNameList,
const char* strBusType)
const = 0;
112 virtual tResult
Load(
const char* strFilenameList,
113 const char* strBusType,
114 adtf::ucom::ant::iobject_ptr<adtf::ucom::ant::IObject>& pDatabase) = 0;
150 virtual tResult
Register(adtf::ucom::ant::iobject_ptr<adtf::devicetb::sdk::axle::IBusDatabaseLoader>& pDBLoader) = 0;
160 virtual tResult
Unregister(adtf::ucom::ant::iobject_ptr<adtf::devicetb::sdk::axle::IBusDatabaseLoader>& pDBLoader) = 0;
215 virtual tResult
Accept(
const adtf::base::ant::IProperties& oProperties)
const = 0;
231 virtual tResult
Load(
const adtf::base::ant::IProperties& oProperties,
232 adtf::ucom::ant::iobject_ptr<adtf::ucom::ant::IObject>& pDatabase) = 0;
Interface for implementing bus database readers.
virtual tResult Load(const char *strFilenameList, const char *strBusType, adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > &pDatabase)=0
Reads bus database files into an instance of a database object.
virtual bool Accept(const char *strFileNameList, const char *strBusType) const =0
Checks if the parser supports the requested bus database file(s).
virtual const char * GetName() const =0
Returns the name of the implementing parser instance.
Bus database registry class for handling different implementations of reading bus database specificat...
virtual tResult Unregister(adtf::ucom::ant::iobject_ptr< adtf::devicetb::sdk::axle::IBusDatabaseLoader > &pDBLoader)=0
Removes a previously registered implementation of a IBusDatabaseLoader from the support service.
virtual tResult Register(adtf::ucom::ant::iobject_ptr< adtf::devicetb::sdk::axle::IBusDatabaseLoader > &pDBLoader)=0
Registers an implementation of a IBusDatabaseLoader to the support service.
Interface for implementing bus database readers.
virtual tResult Load(const adtf::base::ant::IProperties &oProperties, adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > &pDatabase)=0
Reads bus database files into an instance of a database object.
virtual tResult Accept(const adtf::base::ant::IProperties &oProperties) const =0
Checks if the parser supports the requested bus database.
virtual const char * GetName() const =0
Returns the name of the implementing parser instance.
constexpr const char *const BUSDB_PARSER_ADDITIONAL_PARAMETERS_PROP
Additional parser parameters which will be forwarded into the parser.
constexpr const char *const BUSDB_PARSER_BUSTYPE_PROP
Compulsory property name for the bus type, which is requested by the caller.
constexpr const char *const BUSDB_PARSER_DATABASE_PROP
Compulsory property name for the filepath to the database file.
axle::IBusDatabaseRegistry IBusDatabaseRegistry
Bus database registry class for handling different implementations of reading bus database specificat...
constexpr const char *const BUSDB_PARSER_ADDITIONAL_PARAMETERS_PROP
Additional parser parameters which will be forwarded into the parser.
cylinder::IBusDatabaseLoader IBusDatabaseLoader
Interface for implementing bus database readers.
constexpr const char *const BUSDB_PARSER_CLUSTER_NAME_PROP
constexpr const char *const BUSDB_PARSER_BUSTYPE_PROP
Compulsory property name for the bus type, which is requested by the caller.
constexpr const char *const BUSDB_PARSER_DATABASE_PROP
Compulsory property name for the filepath to the database file.