1 #ifndef _midge__input_hh_ 2 #define _midge__input_hh_ 13 template<
class x_node,
class x_type >
30 stream* t_stream = p_stream;
32 if( t_typed_stream == NULL )
34 throw error() <<
"input <" << get_name() <<
"> on node <" <<
f_node->get_name() <<
"> cannot cast the provided stream down to the expected specific type\n" <<
35 "Look for a mismatch between the data types in:\n" <<
36 "\tOutput: " << scarab::type( *p_stream ) <<
'\n' <<
37 "\tInput: " << scarab::type( t_typed_stream );
40 t_typed_stream->label() =
f_node->get_name() +
":" + get_name();