18 message() <<
"----------------------------------------------------------" << std::endl ;
19 message() <<
"-- Geometry plugin: " <<
name() << std::endl ;
22 message() <<
"-- Type index: " << std::endl ;
23 message() <<
"---- name: " << typeidx.name() << std::endl ;
24 message() <<
"---- hash: " << typeidx.hash_code() << std::endl ;
26 message() <<
"-- Geometry dump:" << std::endl ;
28 message() <<
"-- End of geometry dump" << std::endl ;
30 message() <<
"----------------------------------------------------------" << std::endl ;
37 if( config.hasSection(
"geometry") ) {
const std::string & name() const
Get the component name.
void setName(const std::string &n)
Set the component name.
void setParameters(const ConfigSection §ion, bool throwIfNotFound=false)
Set the parameters from the configuration section.
Logging::StreamType message() const
Shortcut for log<MESSAGE>()
void print() const
Print the complete geometry plugin description.
virtual void dumpGeometry() const =0
Dump the geometry in the console.
const std::string & description() const
Get the component description.
virtual void initialize() override
Init the geometry plugin.
const Application & application() const
Get the application in which the component is registered.
virtual const void * handle() const =0
Get a handle on the geometry instance.
BoolParameter _dumpGeometry
Whether to dump the geometry on creation.
virtual std::type_index typeIndex() const =0
Get a type index object from the geometry handle.
const Configuration & configuration() const
Get the main application configuration object.