summaryrefslogtreecommitdiff
path: root/include/CommonAPI/OutputStream.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/CommonAPI/OutputStream.hpp')
-rw-r--r--include/CommonAPI/OutputStream.hpp226
1 files changed, 113 insertions, 113 deletions
diff --git a/include/CommonAPI/OutputStream.hpp b/include/CommonAPI/OutputStream.hpp
index 1ca221c..df12297 100644
--- a/include/CommonAPI/OutputStream.hpp
+++ b/include/CommonAPI/OutputStream.hpp
@@ -22,218 +22,218 @@
namespace CommonAPI {
-template<class _Derived>
+template<class Derived_>
class OutputStream {
public:
- template<class _Deployment>
- OutputStream &writeValue(const bool &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_>
+ OutputStream &writeValue(const bool &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment>
- OutputStream &writeValue(const int8_t &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_>
+ OutputStream &writeValue(const int8_t &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment>
- OutputStream &writeValue(const int16_t &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_>
+ OutputStream &writeValue(const int16_t &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment>
- OutputStream &writeValue(const int32_t &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_>
+ OutputStream &writeValue(const int32_t &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment>
- OutputStream &writeValue(const int64_t &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_>
+ OutputStream &writeValue(const int64_t &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment>
- OutputStream &writeValue(const uint8_t &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_>
+ OutputStream &writeValue(const uint8_t &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment>
- OutputStream &writeValue(const uint16_t &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_>
+ OutputStream &writeValue(const uint16_t &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment>
- OutputStream &writeValue(const uint32_t &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_>
+ OutputStream &writeValue(const uint32_t &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment>
- OutputStream &writeValue(const uint64_t &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_>
+ OutputStream &writeValue(const uint64_t &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment>
- OutputStream &writeValue(const float &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_>
+ OutputStream &writeValue(const float &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment>
- OutputStream &writeValue(const double &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_>
+ OutputStream &writeValue(const double &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment>
- OutputStream &writeValue(const std::string &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_>
+ OutputStream &writeValue(const std::string &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment>
- OutputStream &writeValue(const Version &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_>
+ OutputStream &writeValue(const Version &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment, typename _Base>
- OutputStream &writeValue(const Enumeration<_Base> &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
- }
+ template<class Deployment_, typename Base_>
+ OutputStream &writeValue(const Enumeration<Base_> &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
+ }
- template<class _Deployment, typename... _Types>
- OutputStream &writeValue(const Struct<_Types...> &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_, typename... Types_>
+ OutputStream &writeValue(const Struct<Types_...> &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment, class _PolymorphicStruct>
- OutputStream &writeValue(const std::shared_ptr<_PolymorphicStruct> &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_, class PolymorphicStruct_>
+ OutputStream &writeValue(const std::shared_ptr<PolymorphicStruct_> &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment, typename... _Types>
- OutputStream &writeValue(const Variant<_Types...> &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_, typename... Types_>
+ OutputStream &writeValue(const Variant<Types_...> &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment, typename _ElementType>
- OutputStream &writeValue(const std::vector<_ElementType> &_value, const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_, typename ElementType_>
+ OutputStream &writeValue(const std::vector<ElementType_> &_value, const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
- template<class _Deployment, typename _KeyType, typename _ValueType, typename _HasherType>
- OutputStream &writeValue(const std::unordered_map<_KeyType, _ValueType, _HasherType> &_value,
- const _Deployment *_depl = nullptr) {
- return get()->writeValue(_value, _depl);
+ template<class Deployment_, typename KeyType_, typename ValueType_, typename HasherType_>
+ OutputStream &writeValue(const std::unordered_map<KeyType_, ValueType_, HasherType_> &_value,
+ const Deployment_ *_depl = nullptr) {
+ return get()->writeValue(_value, _depl);
}
bool hasError() const {
- return get()->hasError();
+ return get()->hasError();
}
private:
- inline _Derived *get() {
- return static_cast<_Derived *>(this);
+ inline Derived_ *get() {
+ return static_cast<Derived_ *>(this);
}
- inline const _Derived *get() const {
- return static_cast<const _Derived *>(this);
+ inline const Derived_ *get() const {
+ return static_cast<const Derived_ *>(this);
}
};
-template<class _Derived>
-inline OutputStream<_Derived> &operator<<(OutputStream<_Derived> &_output, const bool &_value) {
+template<class Derived_>
+inline OutputStream<Derived_> &operator<<(OutputStream<Derived_> &_output, const bool &_value) {
return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived>
-inline OutputStream<_Derived>& operator<<(OutputStream<_Derived> &_output, const int8_t &_value) {
+template<class Derived_>
+inline OutputStream<Derived_>& operator<<(OutputStream<Derived_> &_output, const int8_t &_value) {
return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived>
-inline OutputStream<_Derived>& operator<<(OutputStream<_Derived> &_output, const int16_t &_value) {
+template<class Derived_>
+inline OutputStream<Derived_>& operator<<(OutputStream<Derived_> &_output, const int16_t &_value) {
return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived>
-inline OutputStream<_Derived>& operator<<(OutputStream<_Derived> &_output, const int32_t &_value) {
+template<class Derived_>
+inline OutputStream<Derived_>& operator<<(OutputStream<Derived_> &_output, const int32_t &_value) {
return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived>
-inline OutputStream<_Derived>& operator<<(OutputStream<_Derived> &_output, const int64_t &_value) {
+template<class Derived_>
+inline OutputStream<Derived_>& operator<<(OutputStream<Derived_> &_output, const int64_t &_value) {
return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived>
-inline OutputStream<_Derived>& operator<<(OutputStream<_Derived> &_output, const uint8_t &_value) {
+template<class Derived_>
+inline OutputStream<Derived_>& operator<<(OutputStream<Derived_> &_output, const uint8_t &_value) {
return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived>
-inline OutputStream<_Derived>& operator<<(OutputStream<_Derived> &_output, const uint16_t &_value) {
+template<class Derived_>
+inline OutputStream<Derived_>& operator<<(OutputStream<Derived_> &_output, const uint16_t &_value) {
return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived>
-inline OutputStream<_Derived>& operator<<(OutputStream<_Derived> &_output, const uint32_t &_value) {
+template<class Derived_>
+inline OutputStream<Derived_>& operator<<(OutputStream<Derived_> &_output, const uint32_t &_value) {
return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived>
-inline OutputStream<_Derived>& operator<<(OutputStream<_Derived> &_output, const uint64_t &_value) {
+template<class Derived_>
+inline OutputStream<Derived_>& operator<<(OutputStream<Derived_> &_output, const uint64_t &_value) {
return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived>
-inline OutputStream<_Derived>& operator<<(OutputStream<_Derived> &_output, const float &_value) {
+template<class Derived_>
+inline OutputStream<Derived_>& operator<<(OutputStream<Derived_> &_output, const float &_value) {
return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived>
-inline OutputStream<_Derived>& operator<<(OutputStream<_Derived> &_output, const double &_value) {
+template<class Derived_>
+inline OutputStream<Derived_>& operator<<(OutputStream<Derived_> &_output, const double &_value) {
return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived>
-inline OutputStream<_Derived>& operator<<(OutputStream<_Derived> &_output, const std::string &_value) {
+template<class Derived_>
+inline OutputStream<Derived_>& operator<<(OutputStream<Derived_> &_output, const std::string &_value) {
return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived, typename _Type, typename _TypeDepl>
-inline OutputStream<_Derived> &operator<<(OutputStream<_Derived> &_output, const Deployable<_Type, _TypeDepl> &_value) {
- return _output.template writeValue<_TypeDepl>(_value.getValue(), _value.getDepl());
+template<class Derived_, typename Type_, typename TypeDepl_>
+inline OutputStream<Derived_> &operator<<(OutputStream<Derived_> &_output, const Deployable<Type_, TypeDepl_> &_value) {
+ return _output.template writeValue<TypeDepl_>(_value.getValue(), _value.getDepl());
}
-template<class _Derived>
-inline OutputStream<_Derived>& operator<<(OutputStream<_Derived> &_output, const Version &_value) {
+template<class Derived_>
+inline OutputStream<Derived_>& operator<<(OutputStream<Derived_> &_output, const Version &_value) {
return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived, typename _Base>
-OutputStream<_Derived> &operator<<(OutputStream<_Derived> &_output, const Enumeration<_Base> &_value) {
- return _output.template writeValue<EmptyDeployment>(_value);
+template<class Derived_, typename Base_>
+OutputStream<Derived_> &operator<<(OutputStream<Derived_> &_output, const Enumeration<Base_> &_value) {
+ return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived, typename... _Types>
-OutputStream<_Derived> &operator<<(OutputStream<_Derived> &_output, const Struct<_Types...> &_value) {
- return _output.template writeValue<EmptyDeployment>(_value);
+template<class Derived_, typename... Types_>
+OutputStream<Derived_> &operator<<(OutputStream<Derived_> &_output, const Struct<Types_...> &_value) {
+ return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived, class _PolymorphicStruct>
-OutputStream<_Derived> &operator<<(OutputStream<_Derived> &_output, const std::shared_ptr<_PolymorphicStruct> &_value) {
- return _output.template writeValue<EmptyDeployment>(_value);
+template<class Derived_, class PolymorphicStruct_>
+OutputStream<Derived_> &operator<<(OutputStream<Derived_> &_output, const std::shared_ptr<PolymorphicStruct_> &_value) {
+ return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived, typename... _Types>
-OutputStream<_Derived> &operator<<(OutputStream<_Derived> &_output, const Variant<_Types...> &_value) {
- return _output.template writeValue<EmptyDeployment>(_value);
+template<class Derived_, typename... Types_>
+OutputStream<Derived_> &operator<<(OutputStream<Derived_> &_output, const Variant<Types_...> &_value) {
+ return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived, typename _ElementType>
-OutputStream<_Derived> &operator<<(OutputStream<_Derived> &_output, const std::vector<_ElementType> &_value) {
- return _output.template writeValue<EmptyDeployment>(_value);
+template<class Derived_, typename ElementType_>
+OutputStream<Derived_> &operator<<(OutputStream<Derived_> &_output, const std::vector<ElementType_> &_value) {
+ return _output.template writeValue<EmptyDeployment>(_value);
}
-template<class _Derived, typename _KeyType, typename _ValueType, typename _HasherType>
-OutputStream<_Derived> &operator<<(OutputStream<_Derived> &_output,
- const std::unordered_map<_KeyType, _ValueType, _HasherType> &_value) {
- return _output.template writeValue<EmptyDeployment>(_value);
+template<class Derived_, typename KeyType_, typename ValueType_, typename HasherType_>
+OutputStream<Derived_> &operator<<(OutputStream<Derived_> &_output,
+ const std::unordered_map<KeyType_, ValueType_, HasherType_> &_value) {
+ return _output.template writeValue<EmptyDeployment>(_value);
}
} // namespace CommonAPI