112 , m_input ( p_input )
115 , m_has_error ( false )
116 , m_is_integer ( false )
117 , m_is_new_format ( false )
120 m_f0 = m_f1 = m_f2 = m_f3 = m_f4 = m_f5 = 0;
123 m_probname[0] =
'\0';
124 m_objname [0] =
'\0';
132 m_f0 = m_f1 = m_f2 = m_f3 = m_f4 = m_f5 = 0;
173 m_section = p_section;
200 MSG_ERROR( std::cerr <<
"Syntax error in line " << m_lineno << std::endl; )
206 const char* what,
const char* what_name,
207 const char* entity,
const char* entity_name)
209 if ( m_ignored < m_max_ignore )
211 MSG_ERROR( std::cerr <<
"Warning: line " << m_lineno <<
": " 212 << what <<
" \"" << what_name <<
"\"" 213 <<
" for " << entity <<
" \"" 214 << entity_name <<
"\" ignored" << std::endl; )
217 if ( m_ignored == m_max_ignore )
218 MSG_ERROR( std::cerr <<
"Warning: This was the " << m_max_ignore
219 <<
" ignored entry. No further warnings on " 220 <<
"ignored entries will be given." << std::endl; )
232 bool second =
false );
236 #endif // _MPSINPUT_H_
Wrapper for different output streams and verbosity levels.
#define MSG_ERROR(x)
Prints out message x if the verbosity level is at least SPxOut::ERROR.
int spxSnprintf(char *t, size_t len, const char *s,...)
safe version of snprintf
Everything should be within this namespace.