IndexMemory.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 RobotAPI::ArmarXObjects::IndexMemory
17  * @author Rainer Kartmann ( rainer dot kartmann at kit dot edu )
18  * @date 2022
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 
27 
29 
31 
32 namespace armarx
33 {
34  /**
35  * @defgroup Component-IndexMemory IndexMemory
36  * @ingroup RobotAPI-Components
37  * A description of the component IndexMemory.
38  *
39  * @class IndexMemory
40  * @ingroup Component-IndexMemory
41  * @brief Brief description of class IndexMemory.
42  *
43  * Detailed description of class IndexMemory.
44  */
45  class IndexMemory :
46  virtual public armarx::Component,
49  {
50  public:
51  std::string getDefaultName() const override;
52 
53 
54  // LightweightRemoteGuiComponentPluginUser interface
55  public:
56  void createRemoteGuiTab();
57  void RemoteGui_update() override;
58 
59 
60  protected:
62 
63  void onInitComponent() override;
64  void onConnectComponent() override;
65  void onDisconnectComponent() override;
66  void onExitComponent() override;
67 
68 
69  private:
70  struct Properties
71  {
72  int maxHistorySize = 1024;
73  };
74 
75  Properties properties;
76 
77  struct RemoteGuiTab : RemoteGui::Client::Tab
78  {
79  };
80 
81  RemoteGuiTab tab;
82  };
83 } // namespace armarx
armarx::IndexMemory::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition: IndexMemory.cpp:83
armarx::IndexMemory::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: IndexMemory.cpp:74
armarx::IndexMemory
Brief description of class IndexMemory.
Definition: IndexMemory.h:45
ReadWritePluginUser.h
armarx::RemoteGui::Client::Tab
Definition: Tab.h:15
armarx::IndexMemory::createRemoteGuiTab
void createRemoteGuiTab()
Definition: IndexMemory.cpp:93
LightweightRemoteGuiComponentPlugin.h
armarx::IndexMemory::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: IndexMemory.cpp:37
armarx::IndexMemory::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: IndexMemory.cpp:59
armarx::armem::server::plugins::ReadWritePluginUser
Base class of memory server components.
Definition: ReadWritePluginUser.h:20
armarx::LightweightRemoteGuiComponentPluginUser
Definition: LightweightRemoteGuiComponentPlugin.h:72
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:91
armarx::IndexMemory::getDefaultName
std::string getDefaultName() const override
Retrieve default name of component.
Definition: IndexMemory.cpp:53
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::IndexMemory::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition: IndexMemory.cpp:88
armarx::IndexMemory::RemoteGui_update
void RemoteGui_update() override
Definition: IndexMemory.cpp:105
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27