- added
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@875 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include "TestBlock.hpp"
|
||||
|
||||
template<typename T>
|
||||
TestBlock<T>::TestBlock()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
TestBlock<T>::~TestBlock()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void TestBlock<T>::process(Buffer<T> &in, Buffer<T> &out)
|
||||
{
|
||||
size_t toCopy = in.len();
|
||||
out.write(in.data_r(), toCopy);
|
||||
in.consume(toCopy);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
#ifndef TESTBLOCK_HPP
|
||||
#define TESTBLOCK_HPP
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <ABlock.hpp>
|
||||
|
||||
template <typename T>
|
||||
class TestBlock : public ABlock<T>
|
||||
{
|
||||
public:
|
||||
TestBlock();
|
||||
~TestBlock();
|
||||
|
||||
void process(Buffer<T> &in, Buffer<T> &out);
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user