Operations.h
Go to the documentation of this file.
1 /*
2 * This file is part of ArmarX.
3 *
4 * Copyright (C) 2011-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5 *
6 * ArmarX is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * ArmarX is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * @package ArmarX::Core
19 * @author Kai Welke (welke _at_ kit _dot_ edu)
20 * @date 2012 Kai Welke
21 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22 * GNU General Public License
23 */
24 
25 #pragma once
26 
29 
30 namespace armarx
31 {
32  class Operation;
33 
38 
49  virtual public TermImpl,
50  virtual public OperationBase
51  {
52  public:
58  OperationType getOperationType(const Ice::Current& c = Ice::emptyCurrent) const override;
59  protected:
60  // required for Ice::ObjectFactory
61  Operation();
62 
63 
64  };
65 
73  virtual public Operation,
74  virtual public OperationAndBase
75  {
76  template <class BaseClass, class VariantClass>
77  friend class GenericFactory;
78  public:
86 
90  void update(const Ice::Current& c = Ice::emptyCurrent) override;
91  void updateWithData(const Ice::Current&) override;
92 
98  void output(std::ostream& out) const override;
99 
105  std::string getOperationString(const Ice::Current& c = Ice::emptyCurrent) override;
106 
112  Ice::ObjectPtr ice_clone() const override;
113 
114  protected:
115  OperationAnd();
116  };
117 
125  virtual public Operation,
126  virtual public OperationOrBase
127  {
128  template <class BaseClass, class VariantClass>
129  friend class GenericFactory;
130  public:
138 
142  void update(const Ice::Current& c = Ice::emptyCurrent) override;
143  void updateWithData(const Ice::Current&) override;
144 
150  void output(std::ostream& out) const override;
151 
157  std::string getOperationString(const Ice::Current& c = Ice::emptyCurrent) override;
158 
164  Ice::ObjectPtr ice_clone() const override;
165 
166  protected:
167  OperationOr();
168  };
169 
177  virtual public Operation,
178  virtual public OperationNotBase
179  {
180  template <class BaseClass, class VariantClass>
181  friend class GenericFactory;
182  public:
189 
193  void update(const Ice::Current& c = Ice::emptyCurrent) override;
194  void updateWithData(const Ice::Current&) override;
195 
201  void output(std::ostream& out) const override;
202 
208  std::string getOperationString(const Ice::Current& c = Ice::emptyCurrent) override;
209 
215  Ice::ObjectPtr ice_clone() const override;
216 
217  protected:
218  OperationNot();
219  };
220 }
221 
a
#define a
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
TermImpl.h
IceInternal::Handle
Definition: forward_declarations.h:8
armarx::OperationOr
Definition: Operations.h:124
armarx::OperationAnd
Definition: Operations.h:72
armarx::OperationNot
Definition: Operations.h:176
armarx::armem::server::ltm::util::mongodb::detail::update
bool update(mongocxx::collection &coll, const nlohmann::json &query, const nlohmann::json &update)
Definition: mongodb.cpp:67
armarx::Operation
Definition: Operations.h:48
ImportExport.h
armarx::GenericFactory
Definition: FactoryCollectionBase.h:51
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
ARMARXCORE_IMPORT_EXPORT
#define ARMARXCORE_IMPORT_EXPORT
Definition: ImportExport.h:38
armarx::TermImpl
Definition: TermImpl.h:53
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28