[DEV] correct the template specializatin compilation with g++
This commit is contained in:
parent
f76787a7d2
commit
bae883a836
@ -12,6 +12,7 @@
|
||||
#include <climits>
|
||||
#include <etk/os/FSNode.h>
|
||||
#include <zeus/mineType.h>
|
||||
#include <zeus/WebServer.h>
|
||||
|
||||
|
||||
void zeus::addType(std::vector<uint8_t>& _data, zeus::ParamType _type) {
|
||||
@ -45,17 +46,18 @@ void zeus::Buffer::addParameterEmptyVector() {
|
||||
addType(data, createType<std::vector<void>>());
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<std::string>(uint16_t _paramId, const std::string& _value) {
|
||||
namespace zeus {
|
||||
template<>
|
||||
void Buffer::internalAddParameter<std::string>(uint16_t _paramId, const std::string& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<std::string>());
|
||||
int32_t currentOffset = data.size();
|
||||
data.resize(data.size()+_value.size());
|
||||
memcpy(&data[currentOffset], &_value[0], _value.size());
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<std::vector<std::string>>(uint16_t _paramId, const std::vector<std::string>& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<std::vector<std::string>>(uint16_t _paramId, const std::vector<std::string>& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<std::vector<std::string>>());
|
||||
// count all datas:
|
||||
@ -75,10 +77,10 @@ void zeus::Buffer::internalAddParameter<std::vector<std::string>>(uint16_t _para
|
||||
currentOffset++;
|
||||
}
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<std::vector<bool>>(uint16_t _paramId, const std::vector<bool>& _value) {
|
||||
template<>
|
||||
void Buffer::internalAddParameter<std::vector<bool>>(uint16_t _paramId, const std::vector<bool>& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<std::vector<bool>>());
|
||||
// add size:
|
||||
@ -94,10 +96,10 @@ void zeus::Buffer::internalAddParameter<std::vector<bool>>(uint16_t _paramId, co
|
||||
currentOffset++;
|
||||
}
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<std::vector<int8_t>>(uint16_t _paramId, const std::vector<int8_t>& _value) {
|
||||
template<>
|
||||
void Buffer::internalAddParameter<std::vector<int8_t>>(uint16_t _paramId, const std::vector<int8_t>& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<std::vector<int8_t>>());
|
||||
// add size:
|
||||
@ -105,9 +107,9 @@ void zeus::Buffer::internalAddParameter<std::vector<int8_t>>(uint16_t _paramId,
|
||||
data.resize(data.size()+_value.size());
|
||||
memcpy(&data[currentOffset], &_value[0], sizeof(int8_t)*_value.size());
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<std::vector<int16_t>>(uint16_t _paramId, const std::vector<int16_t>& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<std::vector<int16_t>>(uint16_t _paramId, const std::vector<int16_t>& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<std::vector<int16_t>>());
|
||||
// add size:
|
||||
@ -115,9 +117,9 @@ void zeus::Buffer::internalAddParameter<std::vector<int16_t>>(uint16_t _paramId,
|
||||
data.resize(data.size()+_value.size());
|
||||
memcpy(&data[currentOffset], &_value[0], sizeof(int16_t)*_value.size());
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<std::vector<int32_t>>(uint16_t _paramId, const std::vector<int32_t>& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<std::vector<int32_t>>(uint16_t _paramId, const std::vector<int32_t>& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<std::vector<int32_t>>());
|
||||
// add size:
|
||||
@ -125,9 +127,9 @@ void zeus::Buffer::internalAddParameter<std::vector<int32_t>>(uint16_t _paramId,
|
||||
data.resize(data.size()+_value.size());
|
||||
memcpy(&data[currentOffset], &_value[0], sizeof(int32_t)*_value.size());
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<std::vector<int64_t>>(uint16_t _paramId, const std::vector<int64_t>& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<std::vector<int64_t>>(uint16_t _paramId, const std::vector<int64_t>& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<std::vector<int64_t>>());
|
||||
// add size:
|
||||
@ -135,9 +137,9 @@ void zeus::Buffer::internalAddParameter<std::vector<int64_t>>(uint16_t _paramId,
|
||||
data.resize(data.size()+_value.size());
|
||||
memcpy(&data[currentOffset], &_value[0], sizeof(int64_t)*_value.size());
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<std::vector<uint8_t>>(uint16_t _paramId, const std::vector<uint8_t>& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<std::vector<uint8_t>>(uint16_t _paramId, const std::vector<uint8_t>& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<std::vector<uint8_t>>());
|
||||
// add size:
|
||||
@ -145,9 +147,9 @@ void zeus::Buffer::internalAddParameter<std::vector<uint8_t>>(uint16_t _paramId,
|
||||
data.resize(data.size()+_value.size());
|
||||
memcpy(&data[currentOffset], &_value[0], sizeof(uint8_t)*_value.size());
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<std::vector<uint16_t>>(uint16_t _paramId, const std::vector<uint16_t>& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<std::vector<uint16_t>>(uint16_t _paramId, const std::vector<uint16_t>& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<std::vector<uint16_t>>());
|
||||
// add size:
|
||||
@ -155,9 +157,9 @@ void zeus::Buffer::internalAddParameter<std::vector<uint16_t>>(uint16_t _paramId
|
||||
data.resize(data.size()+_value.size());
|
||||
memcpy(&data[currentOffset], &_value[0], sizeof(uint16_t)*_value.size());
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<std::vector<uint32_t>>(uint16_t _paramId, const std::vector<uint32_t>& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<std::vector<uint32_t>>(uint16_t _paramId, const std::vector<uint32_t>& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<std::vector<uint32_t>>());
|
||||
// add size:
|
||||
@ -165,9 +167,9 @@ void zeus::Buffer::internalAddParameter<std::vector<uint32_t>>(uint16_t _paramId
|
||||
data.resize(data.size()+_value.size());
|
||||
memcpy(&data[currentOffset], &_value[0], sizeof(uint32_t)*_value.size());
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<std::vector<uint64_t>>(uint16_t _paramId, const std::vector<uint64_t>& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<std::vector<uint64_t>>(uint16_t _paramId, const std::vector<uint64_t>& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<std::vector<uint64_t>>());
|
||||
// add size:
|
||||
@ -175,10 +177,10 @@ void zeus::Buffer::internalAddParameter<std::vector<uint64_t>>(uint16_t _paramId
|
||||
data.resize(data.size()+_value.size());
|
||||
memcpy(&data[currentOffset], &_value[0], sizeof(uint64_t)*_value.size());
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<std::vector<float>>(uint16_t _paramId, const std::vector<float>& _value) {
|
||||
template<>
|
||||
void Buffer::internalAddParameter<std::vector<float>>(uint16_t _paramId, const std::vector<float>& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<std::vector<float>>());
|
||||
// add size:
|
||||
@ -186,10 +188,10 @@ void zeus::Buffer::internalAddParameter<std::vector<float>>(uint16_t _paramId, c
|
||||
data.resize(data.size()+_value.size());
|
||||
memcpy(&data[currentOffset], &_value[0], sizeof(float)*_value.size());
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<std::vector<double>>(uint16_t _paramId, const std::vector<double>& _value) {
|
||||
template<>
|
||||
void Buffer::internalAddParameter<std::vector<double>>(uint16_t _paramId, const std::vector<double>& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<std::vector<double>>());
|
||||
// add size:
|
||||
@ -197,96 +199,96 @@ void zeus::Buffer::internalAddParameter<std::vector<double>>(uint16_t _paramId,
|
||||
data.resize(data.size()+_value.size());
|
||||
memcpy(&data[currentOffset], &_value[0], sizeof(double)*_value.size());
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<int8_t>(uint16_t _paramId, const int8_t& _value) {
|
||||
template<>
|
||||
void Buffer::internalAddParameter<int8_t>(uint16_t _paramId, const int8_t& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<int8_t>());
|
||||
data.push_back(uint8_t(_value));
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<uint8_t>(uint16_t _paramId, const uint8_t& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<uint8_t>(uint16_t _paramId, const uint8_t& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<uint8_t>());
|
||||
data.push_back(_value);
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<int16_t>(uint16_t _paramId, const int16_t& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<int16_t>(uint16_t _paramId, const int16_t& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<int16_t>());
|
||||
int32_t currentOffset = data.size();
|
||||
data.resize(data.size()+2);
|
||||
memcpy(&data[currentOffset], &_value, 2);
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<uint16_t>(uint16_t _paramId, const uint16_t& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<uint16_t>(uint16_t _paramId, const uint16_t& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<uint16_t>());
|
||||
int32_t currentOffset = data.size();
|
||||
data.resize(data.size()+2);
|
||||
memcpy(&data[currentOffset], &_value, 2);
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<int32_t>(uint16_t _paramId, const int32_t& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<int32_t>(uint16_t _paramId, const int32_t& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<int32_t>());
|
||||
int32_t currentOffset = data.size();
|
||||
data.resize(data.size()+4);
|
||||
memcpy(&data[currentOffset], &_value, 4);
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<uint32_t>(uint16_t _paramId, const uint32_t& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<uint32_t>(uint16_t _paramId, const uint32_t& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<uint32_t>());
|
||||
int32_t currentOffset = data.size();
|
||||
data.resize(data.size()+4);
|
||||
memcpy(&data[currentOffset], &_value, 4);
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<int64_t>(uint16_t _paramId, const int64_t& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<int64_t>(uint16_t _paramId, const int64_t& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<int64_t>());
|
||||
int32_t currentOffset = data.size();
|
||||
data.resize(data.size()+8);
|
||||
memcpy(&data[currentOffset], &_value, 8);
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<uint64_t>(uint16_t _paramId, const uint64_t& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<uint64_t>(uint16_t _paramId, const uint64_t& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<uint64_t>());
|
||||
int32_t currentOffset = data.size();
|
||||
data.resize(data.size()+8);
|
||||
memcpy(&data[currentOffset], &_value, 8);
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<float>(uint16_t _paramId, const float& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<float>(uint16_t _paramId, const float& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<float>());
|
||||
int32_t currentOffset = data.size();
|
||||
data.resize(data.size()+4);
|
||||
memcpy(&data[currentOffset], &_value, 4);
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<double>(uint16_t _paramId, const double& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<double>(uint16_t _paramId, const double& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<double>());
|
||||
int32_t currentOffset = data.size();
|
||||
data.resize(data.size()+8);
|
||||
memcpy(&data[currentOffset], &_value, 8);
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<bool>(uint16_t _paramId, const bool& _value) {
|
||||
}
|
||||
template<>
|
||||
void Buffer::internalAddParameter<bool>(uint16_t _paramId, const bool& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<bool>());
|
||||
if (_value == true) {
|
||||
@ -295,10 +297,9 @@ void zeus::Buffer::internalAddParameter<bool>(uint16_t _paramId, const bool& _va
|
||||
data.push_back('F');
|
||||
}
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
#define ZEUS_MINIMUM_SIZE_MULTIPLE (1024*50)
|
||||
}
|
||||
#define ZEUS_MINIMUM_SIZE_MULTIPLE (1024*50)
|
||||
|
||||
namespace zeus {
|
||||
class SendData {
|
||||
private:
|
||||
std::vector<uint8_t> m_data;
|
||||
@ -340,9 +341,8 @@ namespace zeus {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<zeus::File>(uint16_t _paramId, const zeus::File& _value) {
|
||||
template<>
|
||||
void Buffer::internalAddParameter<zeus::File>(uint16_t _paramId, const zeus::File& _value) {
|
||||
std::vector<uint8_t> data;
|
||||
addType(data, createType<zeus::File>());
|
||||
// set mine type in string:
|
||||
@ -370,8 +370,7 @@ void zeus::Buffer::internalAddParameter<zeus::File>(uint16_t _paramId, const zeu
|
||||
}
|
||||
}
|
||||
m_parameter.push_back(std::make_pair(2,data));
|
||||
}
|
||||
namespace zeus {
|
||||
}
|
||||
class SendFile {
|
||||
private:
|
||||
etk::FSNode m_node;
|
||||
@ -416,10 +415,9 @@ namespace zeus {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
template<>
|
||||
void zeus::Buffer::internalAddParameter<zeus::FileServer>(uint16_t _paramId, const zeus::FileServer& _value) {
|
||||
template<>
|
||||
void Buffer::internalAddParameter<zeus::FileServer>(uint16_t _paramId, const zeus::FileServer& _value) {
|
||||
etk::FSNode node(_value.getFileName());
|
||||
node.fileOpenRead();
|
||||
std::string extention = std::string(_value.getFileName().begin()+_value.getFileName().size() -3, _value.getFileName().end());
|
||||
@ -437,4 +435,6 @@ void zeus::Buffer::internalAddParameter<zeus::FileServer>(uint16_t _paramId, con
|
||||
if (size >= ZEUS_MINIMUM_SIZE_MULTIPLE) {
|
||||
m_multipleSend.push_back(zeus::SendFile(_value.getFileName(), _paramId, size));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -10,9 +10,9 @@
|
||||
#include <etk/stdTools.h>
|
||||
#include <zeus/AbstractFunction.h>
|
||||
#include <climits>
|
||||
|
||||
template<>
|
||||
bool zeus::Buffer::internalGetParameter<bool>(int32_t _id) const {
|
||||
namespace zeus {
|
||||
template<>
|
||||
bool Buffer::internalGetParameter<bool>(int32_t _id) const {
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
uint32_t dataSize = internalGetParameterSize(_id);
|
||||
@ -26,10 +26,10 @@ bool zeus::Buffer::internalGetParameter<bool>(int32_t _id) const {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
std::string zeus::Buffer::internalGetParameter<std::string>(int32_t _id) const {
|
||||
template<>
|
||||
std::string Buffer::internalGetParameter<std::string>(int32_t _id) const {
|
||||
std::string out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -37,11 +37,11 @@ std::string zeus::Buffer::internalGetParameter<std::string>(int32_t _id) const {
|
||||
out.resize(dataSize, 0);
|
||||
memcpy(&out[0], pointer, out.size());
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
template<>
|
||||
uint8_t zeus::Buffer::internalGetParameter<uint8_t>(int32_t _id) const {
|
||||
template<>
|
||||
uint8_t Buffer::internalGetParameter<uint8_t>(int32_t _id) const {
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
uint32_t dataSize = internalGetParameterSize(_id);
|
||||
@ -79,9 +79,9 @@ uint8_t zeus::Buffer::internalGetParameter<uint8_t>(int32_t _id) const {
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return 0;
|
||||
}
|
||||
template<>
|
||||
uint16_t zeus::Buffer::internalGetParameter<uint16_t>(int32_t _id) const {
|
||||
}
|
||||
template<>
|
||||
uint16_t Buffer::internalGetParameter<uint16_t>(int32_t _id) const {
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
uint32_t dataSize = internalGetParameterSize(_id);
|
||||
@ -119,10 +119,10 @@ uint16_t zeus::Buffer::internalGetParameter<uint16_t>(int32_t _id) const {
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
uint32_t zeus::Buffer::internalGetParameter<uint32_t>(int32_t _id) const {
|
||||
template<>
|
||||
uint32_t Buffer::internalGetParameter<uint32_t>(int32_t _id) const {
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
uint32_t dataSize = internalGetParameterSize(_id);
|
||||
@ -160,10 +160,10 @@ uint32_t zeus::Buffer::internalGetParameter<uint32_t>(int32_t _id) const {
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
uint64_t zeus::Buffer::internalGetParameter<uint64_t>(int32_t _id) const {
|
||||
template<>
|
||||
uint64_t Buffer::internalGetParameter<uint64_t>(int32_t _id) const {
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
uint32_t dataSize = internalGetParameterSize(_id);
|
||||
@ -201,10 +201,10 @@ uint64_t zeus::Buffer::internalGetParameter<uint64_t>(int32_t _id) const {
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
int8_t zeus::Buffer::internalGetParameter<int8_t>(int32_t _id) const {
|
||||
template<>
|
||||
int8_t Buffer::internalGetParameter<int8_t>(int32_t _id) const {
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
uint32_t dataSize = internalGetParameterSize(_id);
|
||||
@ -242,10 +242,10 @@ int8_t zeus::Buffer::internalGetParameter<int8_t>(int32_t _id) const {
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
int16_t zeus::Buffer::internalGetParameter<int16_t>(int32_t _id) const {
|
||||
template<>
|
||||
int16_t Buffer::internalGetParameter<int16_t>(int32_t _id) const {
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
uint32_t dataSize = internalGetParameterSize(_id);
|
||||
@ -283,10 +283,10 @@ int16_t zeus::Buffer::internalGetParameter<int16_t>(int32_t _id) const {
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
int32_t zeus::Buffer::internalGetParameter<int32_t>(int32_t _id) const {
|
||||
template<>
|
||||
int32_t Buffer::internalGetParameter<int32_t>(int32_t _id) const {
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
uint32_t dataSize = internalGetParameterSize(_id);
|
||||
@ -324,10 +324,10 @@ int32_t zeus::Buffer::internalGetParameter<int32_t>(int32_t _id) const {
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
int64_t zeus::Buffer::internalGetParameter<int64_t>(int32_t _id) const {
|
||||
template<>
|
||||
int64_t Buffer::internalGetParameter<int64_t>(int32_t _id) const {
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
uint32_t dataSize = internalGetParameterSize(_id);
|
||||
@ -365,10 +365,10 @@ int64_t zeus::Buffer::internalGetParameter<int64_t>(int32_t _id) const {
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
float zeus::Buffer::internalGetParameter<float>(int32_t _id) const {
|
||||
template<>
|
||||
float Buffer::internalGetParameter<float>(int32_t _id) const {
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
uint32_t dataSize = internalGetParameterSize(_id);
|
||||
@ -406,9 +406,9 @@ float zeus::Buffer::internalGetParameter<float>(int32_t _id) const {
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return 0.0f;
|
||||
}
|
||||
template<>
|
||||
double zeus::Buffer::internalGetParameter<double>(int32_t _id) const {
|
||||
}
|
||||
template<>
|
||||
double Buffer::internalGetParameter<double>(int32_t _id) const {
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
uint32_t dataSize = internalGetParameterSize(_id);
|
||||
@ -446,7 +446,7 @@ double zeus::Buffer::internalGetParameter<double>(int32_t _id) const {
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return 0.0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -471,8 +471,8 @@ double zeus::Buffer::internalGetParameter<double>(int32_t _id) const {
|
||||
|
||||
|
||||
|
||||
template<>
|
||||
std::vector<uint8_t> zeus::Buffer::internalGetParameter<std::vector<uint8_t>>(int32_t _id) const {
|
||||
template<>
|
||||
std::vector<uint8_t> Buffer::internalGetParameter<std::vector<uint8_t>>(int32_t _id) const {
|
||||
std::vector<uint8_t> out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -560,9 +560,9 @@ std::vector<uint8_t> zeus::Buffer::internalGetParameter<std::vector<uint8_t>>(in
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return out;
|
||||
}
|
||||
template<>
|
||||
std::vector<uint16_t> zeus::Buffer::internalGetParameter<std::vector<uint16_t>>(int32_t _id) const {
|
||||
}
|
||||
template<>
|
||||
std::vector<uint16_t> Buffer::internalGetParameter<std::vector<uint16_t>>(int32_t _id) const {
|
||||
std::vector<uint16_t> out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -650,10 +650,10 @@ std::vector<uint16_t> zeus::Buffer::internalGetParameter<std::vector<uint16_t>>(
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
std::vector<uint32_t> zeus::Buffer::internalGetParameter<std::vector<uint32_t>>(int32_t _id) const {
|
||||
template<>
|
||||
std::vector<uint32_t> Buffer::internalGetParameter<std::vector<uint32_t>>(int32_t _id) const {
|
||||
std::vector<uint32_t> out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -741,10 +741,10 @@ std::vector<uint32_t> zeus::Buffer::internalGetParameter<std::vector<uint32_t>>(
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
std::vector<uint64_t> zeus::Buffer::internalGetParameter<std::vector<uint64_t>>(int32_t _id) const {
|
||||
template<>
|
||||
std::vector<uint64_t> Buffer::internalGetParameter<std::vector<uint64_t>>(int32_t _id) const {
|
||||
std::vector<uint64_t> out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -832,10 +832,10 @@ std::vector<uint64_t> zeus::Buffer::internalGetParameter<std::vector<uint64_t>>(
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
std::vector<int8_t> zeus::Buffer::internalGetParameter<std::vector<int8_t>>(int32_t _id) const {
|
||||
template<>
|
||||
std::vector<int8_t> Buffer::internalGetParameter<std::vector<int8_t>>(int32_t _id) const {
|
||||
std::vector<int8_t> out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -923,10 +923,10 @@ std::vector<int8_t> zeus::Buffer::internalGetParameter<std::vector<int8_t>>(int3
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
std::vector<int16_t> zeus::Buffer::internalGetParameter<std::vector<int16_t>>(int32_t _id) const {
|
||||
template<>
|
||||
std::vector<int16_t> Buffer::internalGetParameter<std::vector<int16_t>>(int32_t _id) const {
|
||||
std::vector<int16_t> out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -1014,10 +1014,10 @@ std::vector<int16_t> zeus::Buffer::internalGetParameter<std::vector<int16_t>>(in
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
std::vector<int32_t> zeus::Buffer::internalGetParameter<std::vector<int32_t>>(int32_t _id) const {
|
||||
template<>
|
||||
std::vector<int32_t> Buffer::internalGetParameter<std::vector<int32_t>>(int32_t _id) const {
|
||||
std::vector<int32_t> out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -1105,10 +1105,10 @@ std::vector<int32_t> zeus::Buffer::internalGetParameter<std::vector<int32_t>>(in
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
std::vector<int64_t> zeus::Buffer::internalGetParameter<std::vector<int64_t>>(int32_t _id) const {
|
||||
template<>
|
||||
std::vector<int64_t> Buffer::internalGetParameter<std::vector<int64_t>>(int32_t _id) const {
|
||||
std::vector<int64_t> out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -1196,10 +1196,10 @@ std::vector<int64_t> zeus::Buffer::internalGetParameter<std::vector<int64_t>>(in
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
std::vector<float> zeus::Buffer::internalGetParameter<std::vector<float>>(int32_t _id) const {
|
||||
template<>
|
||||
std::vector<float> Buffer::internalGetParameter<std::vector<float>>(int32_t _id) const {
|
||||
std::vector<float> out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -1287,10 +1287,10 @@ std::vector<float> zeus::Buffer::internalGetParameter<std::vector<float>>(int32_
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
std::vector<double> zeus::Buffer::internalGetParameter<std::vector<double>>(int32_t _id) const {
|
||||
template<>
|
||||
std::vector<double> Buffer::internalGetParameter<std::vector<double>>(int32_t _id) const {
|
||||
std::vector<double> out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -1378,10 +1378,10 @@ std::vector<double> zeus::Buffer::internalGetParameter<std::vector<double>>(int3
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
std::vector<bool> zeus::Buffer::internalGetParameter<std::vector<bool>>(int32_t _id) const {
|
||||
template<>
|
||||
std::vector<bool> Buffer::internalGetParameter<std::vector<bool>>(int32_t _id) const {
|
||||
std::vector<bool> out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -1400,10 +1400,10 @@ std::vector<bool> zeus::Buffer::internalGetParameter<std::vector<bool>>(int32_t
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
std::vector<std::string> zeus::Buffer::internalGetParameter<std::vector<std::string>>(int32_t _id) const {
|
||||
template<>
|
||||
std::vector<std::string> Buffer::internalGetParameter<std::vector<std::string>>(int32_t _id) const {
|
||||
std::vector<std::string> out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -1425,10 +1425,10 @@ std::vector<std::string> zeus::Buffer::internalGetParameter<std::vector<std::str
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
template<>
|
||||
zeus::File zeus::Buffer::internalGetParameter<zeus::File>(int32_t _id) const {
|
||||
template<>
|
||||
zeus::File Buffer::internalGetParameter<zeus::File>(int32_t _id) const {
|
||||
zeus::File out;
|
||||
zeus::ParamType type = internalGetParameterType(_id);
|
||||
const uint8_t* pointer = internalGetParameterPointer(_id);
|
||||
@ -1461,6 +1461,6 @@ zeus::File zeus::Buffer::internalGetParameter<zeus::File>(int32_t _id) const {
|
||||
}
|
||||
ZEUS_ERROR("Can not get type from '" << type << "'");
|
||||
return out;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user