9 #ifndef OBJECTCONSUMER_H_ 10 #define OBJECTCONSUMER_H_ 111 const std::string &alternativeName,
ObjectCategory alternativeCategory,
112 std::string alternativeStore);
144 std::shared_ptr<Representation>
_repr;
bool optional
Definition: ObjectConsumer.h:40
observer_ptr< ConsumedObject > _prevAlt
Definition: ObjectConsumer.h:61
Definition: ObjectConsumer.h:133
ObjectConsumer()
Constructor.
Definition: ObjectConsumer.h:30
ConsumedObject()
Constructor.
Definition: ObjectConsumer.h:49
A smart pointer not owning the wrapped object.
Definition: ObserverPtr.h:28
std::vector< ConsumedObject > ConsumedObjects
Type for container of produced objects.
Definition: ObjectConsumer.h:121
Exception(std::string msg="")
Definition: Exception.h:31
Exception class for using undeclared objects as parameters of DeclareAlternative. ...
Definition: ObjectConsumer.h:116
IncludeFileExc.h IncludeFileExc class declaration.
Definition: Algorithm.h:21
ConsumedObjects objs
Definition: ObjectConsumer.h:137
const ConsumedObjects & GetConsumedObjects() const
Getter method for consumed objects.
Definition: ObjectConsumer.h:130
std::string name
Definition: ObjectConsumer.h:37
std::string store
Definition: ObjectConsumer.h:39
ObjectCategory
Category of objects.
Definition: ObjectCategory.h:17
void DeclareConsumedObject(std::string name, ObjectCategory category, std::string store, bool optional=false)
Declare a consumed objects.
Definition: ObjectConsumer.cpp:18
std::shared_ptr< Representation > & GetRepresentation()
Definition: ObjectConsumer.h:141
observer_ptr< ConsumedObject > _nextAlt
Definition: ObjectConsumer.h:61
std::shared_ptr< Representation > _repr
Definition: ObjectConsumer.h:144
std::vector< observer_ptr< ConsumedObject > > GetAlternatives() const
Definition: ObjectConsumer.cpp:82
Descriptor structure for a consumed object.
Definition: ObjectConsumer.h:36
ObjectCategory category
Definition: ObjectConsumer.h:38
void DeclareAlternative(const std::string &name, ObjectCategory category, std::string store, const std::string &alternativeName, ObjectCategory alternativeCategory, std::string alternativeStore)
Declares two already declared objects as alternatives.
Definition: ObjectConsumer.cpp:43
ObjectConsumer(const std::shared_ptr< Representation > &impl)
Definition: ObjectConsumer.h:140
Definition: Exception.h:24
Interface for a class which consumes data objects.
Definition: ObjectConsumer.h:27