- refactored Formatter -> DeFormatter, Formatter
- refactored Symbolizer -> DeSymbolizer, Symbolizer - Formatter is a Processor::Block - changed retrieval for Processor::Buffer - added Exception.hpp git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@1065 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -16,24 +16,6 @@
|
|||||||
namespace Processor
|
namespace Processor
|
||||||
{
|
{
|
||||||
|
|
||||||
class Exception : public std::exception
|
|
||||||
{
|
|
||||||
std::string m_msg;
|
|
||||||
|
|
||||||
public:
|
|
||||||
Exception(std::string msg)
|
|
||||||
: std::exception()
|
|
||||||
, m_msg(msg)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
const char* what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_NOTHROW
|
|
||||||
{
|
|
||||||
return m_msg.c_str();
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
class IBuffer
|
class IBuffer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
#ifndef __PROCESSOR_EXCEPTION_HPP__
|
||||||
|
#define __PROCESSOR_EXCEPTION_HPP__
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
#include <exception>
|
||||||
|
|
||||||
|
#define EXC_MSG(code) (std::string(__PRETTY_FUNCTION__) + ", line " + std::to_string(__LINE__) + ", code " + std::to_string(code))
|
||||||
|
#define EXC_EXCEPT(code) throw Exception(EXC_MSG(code))
|
||||||
|
|
||||||
|
class Exception : public std::exception
|
||||||
|
{
|
||||||
|
std::string m_msg;
|
||||||
|
|
||||||
|
public:
|
||||||
|
Exception(std::string msg)
|
||||||
|
: std::exception()
|
||||||
|
, m_msg(msg)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
const char* what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_NOTHROW
|
||||||
|
{
|
||||||
|
return m_msg.c_str();
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // __PROCESSOR_EXCEPTION_HPP__
|
||||||
Reference in New Issue
Block a user