|
lintel 0.2.0
|
#include <Component.h>
Public Member Functions | |
| Component (std::string configRoot) | |
| virtual | ~Component ()=default |
| const std::string & | getConfigRoot () const |
| virtual std::vector< std::shared_ptr< Entry > > | parse (const std::string &content, int32_t lineOffset, const std::string &fileName)=0 |
Static Protected Member Functions | |
| static std::size_t | convertToBytes (const std::string &size) |
Base class for configuration parsing components
|
explicit |
Construct a component with the given XML config root name
| configRoot | The root element name |
|
virtualdefault |
Virtual destructor
Convert a human-readable size string to bytes
| size | Size string (e.g. "10MB", "1GB") |
| const std::string & lintel::Component::getConfigRoot | ( | ) | const |
Get the configuration root element name
|
pure virtual |
Parse configuration content and produce entries
| content | The raw configuration content |
| fileName | The source file name for error reporting |
| lineOffset | Line offset for error reporting |
Implemented in lintel::PropertyComponent, lintel::PropertyRepositoryComponent, lintel::DatabaseConnectionComponent, lintel::LoggerComponent, lintel::EventBusComponent, lintel::HistoryComponent, lintel::MessageQueueComponent, lintel::ProcessComponent, lintel::SharedMemorySegmentComponent, and lintel::HttpComponent.