OacParameterList.h
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 #pragma once
24 
25 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
26 
28 
29 namespace memoryx::VariantType
30 {
31  const armarx::VariantTypeId OacParamterList = armarx::Variant::addTypeName("::memoryx::OacParameterListBase");
32 }
33 
34 namespace memoryx
35 {
36  class OacParameterList;
38 
39  class OacParameterList: virtual public OacParameterListBase
40  {
41  public:
42  std::vector<std::string> getNames(const Ice::Current& c = Ice::emptyCurrent) const override;
43  void setNames(const std::vector<std::string>& names, const Ice::Current& c = Ice::emptyCurrent) override;
44 
45  void serialize(const armarx::ObjectSerializerBasePtr& serializer, const Ice::Current& c = Ice::emptyCurrent) const override;
46  void deserialize(const armarx::ObjectSerializerBasePtr& serializer, const Ice::Current& c = Ice::emptyCurrent) override;
47 
48  armarx::VariantDataClassPtr clone(const Ice::Current& c = Ice::emptyCurrent) const override;
49  std::string output(const Ice::Current& c = Ice::emptyCurrent) const override;
50  int getType(const Ice::Current& c = Ice::emptyCurrent) const override;
51 
52  bool validate(const Ice::Current& c = Ice::emptyCurrent) override
53  {
54  return true;
55  }
56 
57  Ice::ObjectPtr ice_clone() const override
58  {
59  return this->clone();
60  }
61  };
62 }
63 
memoryx::OacParameterList::clone
armarx::VariantDataClassPtr clone(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacParameterList.cpp:53
memoryx::VariantType::OacParamterList
const armarx::VariantTypeId OacParamterList
Definition: OacParameterList.h:31
memoryx::VariantType
Definition: Affordance.h:32
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
memoryx::OacParameterList::validate
bool validate(const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacParameterList.h:52
memoryx::OacParameterList::deserialize
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacParameterList.cpp:46
IceInternal::Handle
Definition: forward_declarations.h:8
memoryx::OacParameterList::setNames
void setNames(const std::vector< std::string > &names, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacParameterList.cpp:34
memoryx::OacParameterList::output
std::string output(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacParameterList.cpp:62
armarx::VariantTypeId
Ice::Int VariantTypeId
Definition: Variant.h:44
memoryx::OacParameterList::ice_clone
Ice::ObjectPtr ice_clone() const override
Definition: OacParameterList.h:57
armarx::viz::data::ElementFlags::names
const simox::meta::IntEnumNames names
Definition: json_elements.cpp:14
memoryx::OacParameterList::getType
int getType(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacParameterList.cpp:67
memoryx::OacParameterList::getNames
std::vector< std::string > getNames(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacParameterList.cpp:29
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
memoryx::OacParameterList
Definition: OacParameterList.h:39
Variant.h
armarx::Variant::addTypeName
static VariantTypeId addTypeName(const std::string &typeName)
Register a new type for the use in a Variant.
Definition: Variant.cpp:751
memoryx::OacParameterList::serialize
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacParameterList.cpp:39