| 153 | |
| 154 | |
| 155 | void SchemaGenericErrorHandler |
| 156 | (void * /*ctx*/, const char* message, ...) |
| 157 | { |
| 158 | const int ERROR_MESSAGE_SIZE = 256; |
| 159 | char error[ERROR_MESSAGE_SIZE]; |
| 160 | va_list arg_ptr; |
| 161 | |
| 162 | va_start(arg_ptr, message); |
| 163 | vsnprintf(error, ERROR_MESSAGE_SIZE, message, arg_ptr); |
| 164 | va_end(arg_ptr); |
| 165 | |
| 166 | std::ostringstream oss; |
| 167 | |
| 168 | std::cerr << "Generic error: '" << error << "'" << std::endl; |
| 169 | } |
| 170 | |
| 171 | XMLSchema::XMLSchema(std::string xml, std::string xsd, |
| 172 | Orientation orientation) : m_orientation(orientation) |
nothing calls this directly
no outgoing calls
no test coverage detected