31 const std::string&
type,
32 const std::string& docstring ) {
37 <<
"Specified variable name (" <<
name <<
") doesn't have the "
38 <<
"expected prefix (" <<
m_prefix <<
")";
39 return StatusCode::RECOVERABLE;
50 return StatusCode::SUCCESS;
60 var.setDoc( docstring );
65 return StatusCode::SUCCESS;
83 std::set< Variable > newVariables;
86 std::set< Variable >::const_iterator itr =
m_variables.begin();
87 std::set< Variable >::const_iterator end =
m_variables.end();
88 for( ; itr != end; ++itr ) {
92 ( itr->name().starts_with(
m_prefix )) ) {
95 var.setName( var.name().substr(
m_prefix.size(), var.name().npos ) );
97 newVariables.insert( std::move(var) );
100 newVariables.insert( *itr );
107 return StatusCode::SUCCESS;
Helpers for checking error return status codes and reporting errors.
#define REPORT_MESSAGE_WITH_CONTEXT(LVL, CONTEXT_NAME)
Report a message, with an explicitly specified context name.
Block filler tool for noisy FEB information.
bool isPrimitive(const std::string &type)
This function is used in the code generator to determine from a type name if it's a primitive type or...