2015-01-25 22:10:49 +01:00
|
|
|
/** @file
|
|
|
|
* @author Edouard DUPIN
|
|
|
|
* @copyright 2011, Edouard DUPIN, all right reserved
|
|
|
|
* @license APACHE v2.0 (see license file)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "debug.h"
|
2015-02-05 19:10:53 +01:00
|
|
|
#include <drain/EndPointRead.h>
|
2015-01-25 22:10:49 +01:00
|
|
|
|
2015-01-27 21:26:03 +01:00
|
|
|
#undef __class__
|
|
|
|
#define __class__ "EndPointRead"
|
|
|
|
|
2015-02-05 19:10:53 +01:00
|
|
|
drain::EndPointRead::EndPointRead() {
|
2015-01-25 22:10:49 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-01-29 21:46:01 +01:00
|
|
|
|
2015-02-05 19:10:53 +01:00
|
|
|
void drain::EndPointRead::init() {
|
|
|
|
drain::EndPoint::init();
|
2015-02-01 22:22:42 +01:00
|
|
|
m_type = "EndPointRead";
|
2015-01-28 22:07:11 +01:00
|
|
|
}
|
|
|
|
|
2015-02-05 19:10:53 +01:00
|
|
|
std::shared_ptr<drain::EndPointRead> drain::EndPointRead::create() {
|
|
|
|
std::shared_ptr<drain::EndPointRead> tmp(new drain::EndPointRead());
|
2015-01-29 21:46:01 +01:00
|
|
|
tmp->init();
|
|
|
|
return tmp;
|
|
|
|
}
|
2015-01-25 22:10:49 +01:00
|
|
|
|
2015-02-05 19:10:53 +01:00
|
|
|
void drain::EndPointRead::configurationChange() {
|
|
|
|
drain::EndPoint::configurationChange();
|
2015-01-25 22:10:49 +01:00
|
|
|
m_needProcess = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-02-05 19:10:53 +01:00
|
|
|
bool drain::EndPointRead::process(std::chrono::system_clock::time_point& _time,
|
2015-01-25 22:10:49 +01:00
|
|
|
void* _input,
|
|
|
|
size_t _inputNbChunk,
|
|
|
|
void*& _output,
|
|
|
|
size_t& _outputNbChunk){
|
2015-02-05 19:10:53 +01:00
|
|
|
drain::AutoLogInOut tmpLog("EndPointRead");
|
2015-01-25 22:10:49 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|