MCPcopy Create free account
hub / github.com/PDAL/PDAL / SchemaGenericErrorHandler

Function SchemaGenericErrorHandler

pdal/XMLSchema.cpp:155–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154
155void 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
171XMLSchema::XMLSchema(std::string xml, std::string xsd,
172 Orientation orientation) : m_orientation(orientation)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected