|
SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
|
A trivial implementation of SourceInterface meant to be used in unit tests. More...
#include <SimpleSource.h>


Protected Member Functions | |
| const Property & | getProperty (const PropertyId &property_id) const override |
| void | setProperty (std::unique_ptr< Property > property, const PropertyId &property_id) override |
Private Attributes | |
| PropertyHolder | m_property_holder |
A trivial implementation of SourceInterface meant to be used in unit tests.
Unlike SourceWithOnDemandproperties, SimpleSource doesn't do any computation of properties but is instead just a simple container for properties.
Definition at line 41 of file SimpleSource.h.
|
virtualdefault |
Destructor.
|
delete |
|
delete |
|
inline |
Constructor.
Definition at line 55 of file SimpleSource.h.
|
inlineoverrideprotectedvirtual |
Returns a reference to the requested property. The property may be computed if needed Throws a PropertyNotFoundException if the property cannot be provided.
Implements SourceXtractor::SourceInterface.
Definition at line 67 of file SimpleSource.h.
References SourceXtractor::PropertyHolder::getProperty(), and m_property_holder.

|
virtual |
Returns a reference to the requested property. The property may be computed if needed Throws a PropertyNotFoundException if the property cannot be provided.
Implements SourceXtractor::SourceInterface.
|
inline |
Convenience template method to call getProperty() with a more user-friendly syntax.
Definition at line 57 of file SourceInterface.h.
|
delete |
|
delete |
|
inline |
Definition at line 72 of file SourceInterface.h.
|
inlineoverrideprotectedvirtual |
Implements SourceXtractor::SourceInterface.
Definition at line 71 of file SimpleSource.h.
References m_property_holder, std::move(), and SourceXtractor::PropertyHolder::setProperty().

|
virtual |
Implements SourceXtractor::SourceInterface.
|
private |
Definition at line 76 of file SimpleSource.h.
Referenced by getProperty(), and setProperty().