AronGeneratedClass.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2012-2016, High Performance Humanoid Technologies (H2T),
5  * Karlsruhe Institute of Technology (KIT), all rights reserved.
6  *
7  * ArmarX is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  *
11  * ArmarX is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * @author Fabian Peller-Konrad (fabian dot peller-konrad at kit dot edu)
20  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
21  * GNU General Public License
22  */
23 
24 #pragma once
25 
26 // STD/STL
27 #include <map>
28 #include <memory>
29 #include <string>
30 #include <vector>
31 
32 // ArmarX
34 
40 
41 // ARON
42 #include <RobotAPI/interface/aron.h>
43 
45 {
47  {
48  public:
49  AronGeneratedClass() = default;
50  virtual ~AronGeneratedClass() = default;
51 
52  /// Reset all member values of this class to default (as stated in the XML). This may mean that maybe types are null or false and images may be created as headers_only
53  virtual void resetHard(){};
54 
55  /// Reset all member values of this class softly, meaning if a maybe type has a value, we reset only the value (not the full maybe type) and if an image has data (width, height) we keep the data and width and height and only reset teh pixel values
56  virtual void resetSoft(){};
57  };
58 
59  template <class T>
61 } // namespace armarx::aron::cpp
62 
64 {
66 }
armarx::aron::codegenerator::cpp
Definition: AnyObject.cpp:29
Writer.h
armarx::aron::cpp::AronGeneratedClass::~AronGeneratedClass
virtual ~AronGeneratedClass()=default
Reader.h
armarx::aron::cpp
Definition: AronGeneratedClass.h:44
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
armarx::aron::cpp::AronGeneratedClass::resetSoft
virtual void resetSoft()
Reset all member values of this class softly, meaning if a maybe type has a value,...
Definition: AronGeneratedClass.h:56
armarx::aron::cpp::AronGeneratedClass::AronGeneratedClass
AronGeneratedClass()=default
armarx::aron::cpp::AronGeneratedClass
Definition: AronGeneratedClass.h:46
All.h
armarx::aron::cpp::AronGeneratedClass::resetHard
virtual void resetHard()
Reset all member values of this class to default (as stated in the XML). This may mean that maybe typ...
Definition: AronGeneratedClass.h:53
ExpressionException.h
Exception.h
armarx::aron::cpp::isAronGeneratedClass
concept isAronGeneratedClass
Definition: AronGeneratedClass.h:60
armarx::aron::codegenerator::cpp::AronGeneratedClass
aron::cpp::AronGeneratedClass AronGeneratedClass
Definition: AronGeneratedClass.h:65
Writer.h