summaryrefslogtreecommitdiff
path: root/include/CommonAPI/Deployable.hpp
diff options
context:
space:
mode:
authorDirk Huss <dirk_huss@mentor.com>2015-11-25 14:38:28 +0100
committerDirk Huss <dirk_huss@mentor.com>2015-11-25 14:38:28 +0100
commitb6f81b22fcf8d9cf8ee9248408b7d2a72fbff1d9 (patch)
tree8b0b1438ccaa9450ca4b21221eb9cd74f14b10f5 /include/CommonAPI/Deployable.hpp
parent3d2fb21d0e93b6b595610285e910ac80c099a174 (diff)
downloadgenivi-common-api-runtime-b6f81b22fcf8d9cf8ee9248408b7d2a72fbff1d9.tar.gz
CommonAPI 3.1.4
Diffstat (limited to 'include/CommonAPI/Deployable.hpp')
-rw-r--r--include/CommonAPI/Deployable.hpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/include/CommonAPI/Deployable.hpp b/include/CommonAPI/Deployable.hpp
index 7a9002c..4b4b901 100644
--- a/include/CommonAPI/Deployable.hpp
+++ b/include/CommonAPI/Deployable.hpp
@@ -15,43 +15,43 @@ namespace CommonAPI {
struct DeployableBase {
};
-template<typename _Type, typename _TypeDepl>
+template<typename Type_, typename TypeDepl_>
struct Deployable : DeployableBase
{
- Deployable(const _TypeDepl *_depl = nullptr)
- : depl_(const_cast<_TypeDepl *>(_depl)) {
- }
+ Deployable(const TypeDepl_ *_depl = nullptr)
+ : depl_(const_cast<TypeDepl_ *>(_depl)) {
+ }
- Deployable(const _Type &_value, const _TypeDepl *_depl)
- : value_(_value),
- depl_(const_cast<_TypeDepl *>(_depl)) {
+ Deployable(const Type_ &_value, const TypeDepl_ *_depl)
+ : value_(_value),
+ depl_(const_cast<TypeDepl_ *>(_depl)) {
};
- Deployable<_Type, _TypeDepl>& operator=(const Deployable<_Type, _TypeDepl> &_source) {
+ Deployable<Type_, TypeDepl_>& operator=(const Deployable<Type_, TypeDepl_> &_source) {
value_ = _source.value_;
depl_ = _source.depl_;
return (*this);
}
- operator _Type() const {
- return value_;
+ operator Type_() const {
+ return value_;
}
- const _Type &getValue() const {
- return value_;
+ const Type_ &getValue() const {
+ return value_;
}
- _Type &getValue() {
+ Type_ &getValue() {
return value_;
}
- const _TypeDepl *getDepl() const {
- return depl_;
- }
+ const TypeDepl_ *getDepl() const {
+ return depl_;
+ }
protected:
- _Type value_;
- _TypeDepl *depl_;
+ Type_ value_;
+ TypeDepl_ *depl_;
};
} // namespace CommonAPI