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