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 
33 namespace armarx
34 {
35  /**
36  * @defgroup Component-IndexMemory IndexMemory
37  * @ingroup RobotAPI-Components
38  * A description of the component IndexMemory.
39  *
40  * @class IndexMemory
41  * @ingroup Component-IndexMemory
42  * @brief Brief description of class IndexMemory.
43  *
44  * Detailed description of class IndexMemory.
45  */
46  class IndexMemory :
47  virtual public armarx::Component,
50  {
51  public:
52  std::string getDefaultName() const override;
53 
54 
55  // LightweightRemoteGuiComponentPluginUser interface
56  public:
57  void createRemoteGuiTab();
58  void RemoteGui_update() override;
59 
60 
61  protected:
63 
64  void onInitComponent() override;
65  void onConnectComponent() override;
66  void onDisconnectComponent() override;
67  void onExitComponent() override;
68 
69 
70  private:
71  struct Properties
72  {
73  int maxHistorySize = 1024;
74  };
75  Properties properties;
76 
77 
78  struct RemoteGuiTab : RemoteGui::Client::Tab
79  {
80  };
81  RemoteGuiTab tab;
82  };
83 } // namespace armarx
armarx::IndexMemory::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition: IndexMemory.cpp:86
armarx::IndexMemory::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: IndexMemory.cpp:76
armarx::IndexMemory
Brief description of class IndexMemory.
Definition: IndexMemory.h:46
ReadWritePluginUser.h
armarx::RemoteGui::Client::Tab
Definition: Tab.h:15
armarx::IndexMemory::createRemoteGuiTab
void createRemoteGuiTab()
Definition: IndexMemory.cpp:98
LightweightRemoteGuiComponentPlugin.h
armarx::IndexMemory::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: IndexMemory.cpp:38
armarx::IndexMemory::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: IndexMemory.cpp:60
armarx::armem::server::plugins::ReadWritePluginUser
Base class of memory server components.
Definition: ReadWritePluginUser.h:20
armarx::LightweightRemoteGuiComponentPluginUser
Definition: LightweightRemoteGuiComponentPlugin.h:73
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition: Component.h:95
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:92
armarx::IndexMemory::RemoteGui_update
void RemoteGui_update() override
Definition: IndexMemory.cpp:111
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28