OacParameterList.cpp
Go to the documentation of this file.
1/*
2* This file is part of ArmarX.
3*
4* ArmarX is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License version 2 as
6* published by the Free Software Foundation.
7*
8* ArmarX is distributed in the hope that it will be useful, but
9* WITHOUT ANY WARRANTY; without even the implied warranty of
10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11* GNU General Public License for more details.
12*
13* You should have received a copy of the GNU General Public License
14* along with this program. If not, see <http://www.gnu.org/licenses/>.
15*
16* @package MemoryX::Core
17* @author Nils Adermann <naderman@naderman.de>
18* @date 2013
19* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20* GNU General Public License
21*/
22
23#include "OacParameterList.h"
24
26
27namespace memoryx
28{
29 std::vector<std::string>
30 OacParameterList::getNames(const Ice::Current& c) const
31 {
32 return parameterNames;
33 }
34
35 void
36 OacParameterList::setNames(const std::vector<std::string>& names, const Ice::Current& c)
37 {
38 parameterNames = names;
39 }
40
41 void
42 OacParameterList::serialize(const armarx::ObjectSerializerBasePtr& serializer,
43 const Ice::Current& c) const
44 {
46 armarx::AbstractObjectSerializerPtr::dynamicCast(serializer);
47
48 obj->setStringArray("names", parameterNames);
49 }
50
51 void
52 OacParameterList::deserialize(const armarx::ObjectSerializerBasePtr& serializer,
53 const Ice::Current& c)
54 {
56 armarx::AbstractObjectSerializerPtr::dynamicCast(serializer);
57
58 obj->getStringArray("names", parameterNames);
59 }
60
61 armarx::VariantDataClassPtr
62 OacParameterList::clone(const Ice::Current& c) const
63 {
65
66 clone->setNames(this->getNames());
67
68 return clone;
69 }
70
71 std::string
72 OacParameterList::output(const Ice::Current& c) const
73 {
74 return "OacParameterList";
75 }
76
77 int
78 OacParameterList::getType(const Ice::Current& c) const
79 {
81 }
82} // namespace memoryx
constexpr T c
std::vector< std::string > getNames(const Ice::Current &c=Ice::emptyCurrent) const override
int getType(const Ice::Current &c=Ice::emptyCurrent) const override
std::string output(const Ice::Current &c=Ice::emptyCurrent) const override
void setNames(const std::vector< std::string > &names, const Ice::Current &c=Ice::emptyCurrent) override
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const Ice::Current &c=Ice::emptyCurrent) override
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const Ice::Current &c=Ice::emptyCurrent) const override
armarx::VariantDataClassPtr clone(const Ice::Current &c=Ice::emptyCurrent) const override
IceInternal::Handle< AbstractObjectSerializer > AbstractObjectSerializerPtr
const armarx::VariantTypeId OacParamterList
VirtualRobot headers.
IceInternal::Handle< OacParameterList > OacParameterListPtr