OpenDDS
Snapshot(2023/04/28-20:55)
dds
DCPS
Transient_Kludge.h
Go to the documentation of this file.
1
/*
2
*
3
*
4
* Distributed under the OpenDDS License.
5
* See: http://www.opendds.org/license.html
6
*/
7
8
#ifndef OPENDDS_DCPS_TRANSIENT_KLUDGE_H
9
#define OPENDDS_DCPS_TRANSIENT_KLUDGE_H
10
11
#include "
dcps_export.h
"
12
13
#if !defined (ACE_LACKS_PRAGMA_ONCE)
14
#pragma once
15
#endif
/* ACE_LACKS_PRAGMA_ONCE */
16
17
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
18
19
namespace
OpenDDS
{
20
namespace
DCPS {
21
22
/**
23
* @class TransientKludge
24
*
25
* @brief Simply turn on and off the transient kludge enable flag.
26
*
27
* This class provides the methods to set/get transient kludge
28
* enable flag.
29
* Only the repository should set/enable the kludge!!!
30
*/
31
class
OpenDDS_Dcps_Export
Transient_Kludge
{
32
public
:
33
Transient_Kludge
();
34
~
Transient_Kludge
();
35
36
/// Return a singleton instance of this class.
37
static
Transient_Kludge
* instance();
38
39
/// Turn on enabled_ flag.
40
void
enable();
41
42
/// Turn off enabled_ flag.
43
void
disable();
44
45
/// Accessor of enable flag.
46
bool
is_enabled()
const
;
47
48
private
:
49
/// The flag.
50
bool
enabled_
;
51
};
52
53
#define TheTransientKludge OpenDDS::DCPS::Transient_Kludge::instance()
54
55
}
// namespace DCPS
56
}
// namespace OpenDDS
57
58
OPENDDS_END_VERSIONED_NAMESPACE_DECL
59
60
#if defined(__ACE_INLINE__)
61
#include "
Transient_Kludge.inl
"
62
#endif
/* __ACE_INLINE__ */
63
64
#endif
/* OPENDDS_DCPS_TRANSIENT_KLUDGE_H */
Transient_Kludge.inl
dcps_export.h
OpenDDS_Dcps_Export
#define OpenDDS_Dcps_Export
Definition:
dcps_export.h:24
OpenDDS::DCPS::Transient_Kludge::enabled_
bool enabled_
The flag.
Definition:
Transient_Kludge.h:50
OpenDDS::DCPS::Transient_Kludge
Definition:
Transient_Kludge.h:31
OPENDDS_END_VERSIONED_NAMESPACE_DECL
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
Definition:
Versioned_Namespace.h:48
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
Definition:
Hash.cpp:17
OpenDDS
The Internal API and Implementation of OpenDDS.
Definition:
AddressCache.h:28
Generated by
1.8.13