SourceXtractorPlusPlus
0.14
Please provide a description of the project.
|
A trivial implementation of SourceInterface meant to be used in unit tests. More...
#include <SimpleSource.h>
Public Member Functions | |
virtual | ~SimpleSource ()=default |
Destructor. More... | |
SimpleSource (const SimpleSource &)=delete | |
SimpleSource & | operator= (const SimpleSource &)=delete |
SimpleSource (SimpleSource &&)=delete | |
SimpleSource & | operator= (SimpleSource &&)=delete |
SimpleSource () | |
Constructor. More... | |
![]() | |
virtual | ~SourceInterface ()=default |
Destructor. More... | |
template<typename PropertyType > | |
const PropertyType & | getProperty (unsigned int index=0) const |
Convenience template method to call getProperty() with a more user-friendly syntax. More... | |
template<typename PropertyType , typename... Args> | |
void | setIndexedProperty (std::size_t index, Args...args) |
Convenience template method to call setProperty() with a more user-friendly syntax. More... | |
template<typename PropertyType , typename... Args> | |
void | setProperty (Args...args) |
Protected Member Functions | |
virtual const Property & | getProperty (const PropertyId &property_id) const override |
virtual 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.
|
delete |
|
delete |
|
inlineoverrideprotectedvirtual |
Implements SourceXtractor::SourceInterface.
Definition at line 71 of file SimpleSource.h.
References m_property_holder, std::move(), and SourceXtractor::PropertyHolder::setProperty().
|
private |
Definition at line 76 of file SimpleSource.h.
Referenced by getProperty(), and setProperty().