16 auto obj = it->second;
18 std::stringstream str;
19 str <<
"did not receive valid object at " << port->
getName() << std::endl;
24 auto ret = Type::as(obj);
35 return accept<Type>(it->second);
45 std::stringstream str;
46 str <<
"no object available at " << port->
getName() <<
", but " << Type::typeName() <<
" is required"
52 auto obj = it->second;
55 std::stringstream str;
56 str <<
"did not receive valid object at " << port->
getName() << std::endl;
68 return expect<Type>(it->second);
81 std::stringstream str;
82 str <<
"did not receive valid object at " << port->
getName() << std::endl;
87 typename Type::const_ptr ret = Type::as(obj);
95 Port *p = findInputPort(port);
97 return accept<Type>(p);
104 std::stringstream str;
105 str <<
"invalid port" << std::endl;
111 std::stringstream str;
112 str <<
"no object available at " << port->
getName() <<
", but " << Type::typeName() <<
" is required"
119 typename Type::const_ptr ret = Type::as(obj);
122 std::stringstream str;
123 str <<
"did not receive valid object at " << port->
getName() <<
", but " << Type::typeName() <<
" is required"
128 assert(obj->check());
130 std::stringstream str;
132 << Type::typeName() <<
" is required" << std::endl;
140 Port *p = findInputPort(port);
142 return expect<Type>(p);
Type::const_ptr expect(Port *port)
Definition: module_impl.h:101
Type::const_ptr accept(Port *port)
Definition: module_impl.h:72
void sendWarning(const char *fmt,...) const
send warning message to UI - printf style
Definition: module.cpp:2108
int schedulingPolicy() const
Definition: module.cpp:988
void sendError(const char *fmt,...) const
send error message to UI - printf style
Definition: module.cpp:2124
std::shared_ptr< const Object > const_ptr
Definition: object.h:68
static const char * toString(Type v)
Definition: object.cpp:80
Module * m_module
Definition: module.h:104
Type::const_ptr accept(const Port *port)
Definition: module_impl.h:11
std::map< const Port *, Object::const_ptr > m_input
Definition: module.h:105
std::map< std::string, Port * > m_portsByString
Definition: module.h:107
Type::const_ptr expect(const Port *port)
Definition: module_impl.h:39
const std::string & getName() const
Definition: port.cpp:25
ObjectList & objects()
Definition: port.cpp:40
Definition: allobjects.cpp:30