MaxHistorySize.cpp
Go to the documentation of this file.
1
#include "
MaxHistorySize.h
"
2
3
#include <
ArmarXCore/core/logging/Logging.h
>
4
5
6
namespace
armarx::armem::server::wm::detail
7
{
8
void
MaxHistorySize::setMaxHistorySize
(
long
maxSize,
const
std::string& additionalInfo)
9
{
10
if
(maxSize < 0){
11
if
(additionalInfo ==
""
){
12
ARMARX_DEBUG
<<
"The maxHistorySize for this memory entity is set to < 0. "
13
<<
"This means nothing will ever be forgotten in working memory. "
14
<<
"This may slow down the memory server. \n"
15
<<
"It is better to set the maxHistorySize per Provider- or CoreSegment"
;
16
}
else
{
17
ARMARX_DEBUG
<<
"The maxHistorySize for this memory entity is set to < 0. "
18
<<
"This means nothing will ever be forgotten in working memory. "
19
<<
"This may slow down the memory server."
20
<<
"The entity name is "
<< additionalInfo;
21
}
22
}
23
this->
_maxHistorySize
= maxSize;
24
}
25
26
long
MaxHistorySize::getMaxHistorySize
()
const
27
{
28
return
_maxHistorySize
;
29
}
30
}
armarx::armem::server::wm::detail
Definition:
MaxHistorySize.cpp:6
armarx::armem::server::wm::detail::MaxHistorySize::_maxHistorySize
long _maxHistorySize
Maximum size of entity histories.
Definition:
MaxHistorySize.h:29
MaxHistorySize.h
ARMARX_DEBUG
#define ARMARX_DEBUG
Definition:
Logging.h:177
armarx::armem::server::wm::detail::MaxHistorySize::getMaxHistorySize
long getMaxHistorySize() const
Definition:
MaxHistorySize.cpp:26
armarx::armem::server::wm::detail::MaxHistorySize::setMaxHistorySize
void setMaxHistorySize(long maxSize, const std::string &additionalInfo="")
Set the maximum number of snapshots to be contained in an entity.
Definition:
MaxHistorySize.cpp:8
Logging.h
RobotAPI
libraries
armem
server
wm
detail
MaxHistorySize.cpp
Generated on Sat Oct 12 2024 09:14:08 for armarx_documentation by
1.8.17