- fixed exeptions
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@1068 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#define __RADIO_BLOCK_H__
|
||||
|
||||
#include <forward_list>
|
||||
#include <exception>
|
||||
#include "Exception.hpp"
|
||||
#include "Buffer.hpp"
|
||||
|
||||
namespace Processor
|
||||
@@ -23,6 +23,7 @@ class Block
|
||||
virtual ~Block() = default;
|
||||
|
||||
virtual void process() = 0;
|
||||
virtual void prepare() {}
|
||||
|
||||
size_t num_in() const
|
||||
{
|
||||
@@ -54,7 +55,7 @@ class Block
|
||||
}
|
||||
if (!buf)
|
||||
{
|
||||
throw Exception("buffer_in() failed!");
|
||||
EXC_EXCEPT(-1);
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
@@ -69,7 +70,7 @@ class Block
|
||||
}
|
||||
if (!buf)
|
||||
{
|
||||
throw Exception("buffer_out() failed!");
|
||||
EXC_EXCEPT(-1);
|
||||
}
|
||||
return buf;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <exception>
|
||||
#include <algorithm>
|
||||
#include "Exception.hpp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user