2006-12-06 01:06:05 +01:00
|
|
|
#ifndef CONVERTER_H__
|
|
|
|
#define CONVERTER_H__
|
|
|
|
|
|
|
|
#include <exception>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class ColladaException : public std::exception
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ColladaException(const std::string& msg)
|
2006-12-06 18:39:49 +01:00
|
|
|
: msg(msg)
|
2006-12-06 01:06:05 +01:00
|
|
|
{
|
|
|
|
}
|
2006-12-06 18:39:49 +01:00
|
|
|
|
|
|
|
~ColladaException() throw()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual const char* what() const throw()
|
|
|
|
{
|
|
|
|
return msg.c_str();
|
|
|
|
}
|
|
|
|
private:
|
|
|
|
std::string msg;
|
2006-12-06 01:06:05 +01:00
|
|
|
};
|
|
|
|
|
2006-12-20 04:22:24 +01:00
|
|
|
struct OutputCB
|
|
|
|
{
|
|
|
|
virtual void operator() (const char* data, unsigned int length)=0;
|
|
|
|
};
|
|
|
|
|
|
|
|
void ColladaToPMD(const char* input, OutputCB& output, std::string& xmlErrors);
|
2006-12-06 01:06:05 +01:00
|
|
|
|
|
|
|
#endif // CONVERTER_H__
|