m2etis
0.4
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
RoutingInfo.h
Go to the documentation of this file.
1
/*
2
Copyright (2016) Michael Baer, Daniel Bonrath, All rights reserved.
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
22
#ifndef __M2ETIS_MESSAGE_INFO_ROUTINGINFO_H__
23
#define __M2ETIS_MESSAGE_INFO_ROUTINGINFO_H__
24
25
#include "boost/shared_ptr.hpp"
26
27
namespace
m2etis
{
28
namespace
message {
29
30
template
<
class
NetworkType>
31
struct
RoutingInfo
{
32
typedef
boost::shared_ptr<RoutingInfo<NetworkType>>
Ptr
;
33
34
enum class
RoutingType
: uint8_t {
35
NONE
,
36
ACK
,
37
REDIRECT
,
38
STOP
39
};
40
41
RoutingType
action
=
RoutingType::NONE
;
42
43
RoutingInfo
() {}
44
virtual
~RoutingInfo
() {}
45
46
private
:
47
friend
class
boost::serialization::access
;
48
49
template
<
typename
Archive>
50
void
serialize(Archive & ar,
const
unsigned
int
/*version*/
) {
51
ar &
action
;
52
}
53
};
54
55
}
/* namespace message */
56
}
/* namespace m2etis */
57
58
#endif
/* __M2ETIS_MESSAGE_INFO_ROUTINGINFO_H__ */
59
m2etis::message::RoutingInfo::access
friend class boost::serialization::access
Definition:
RoutingInfo.h:47
m2etis::message::RoutingInfo::RoutingType
RoutingType
Definition:
RoutingInfo.h:34
m2etis::message::RoutingInfo::RoutingType::NONE
m2etis::message::RoutingInfo
Definition:
RoutingInfo.h:31
m2etis::message::RoutingInfo::RoutingType::ACK
m2etis::message::RoutingInfo::RoutingInfo
RoutingInfo()
Definition:
RoutingInfo.h:43
m2etis
Definition:
DetMergeConfigTest.h:20
m2etis::message::RoutingInfo::~RoutingInfo
virtual ~RoutingInfo()
Definition:
RoutingInfo.h:44
m2etis::message::RoutingInfo::Ptr
boost::shared_ptr< RoutingInfo< NetworkType > > Ptr
Definition:
RoutingInfo.h:32
m2etis::message::RoutingInfo::action
RoutingType action
Definition:
RoutingInfo.h:41
m2etis::message::RoutingInfo::RoutingType::STOP
m2etis::message::RoutingInfo::RoutingType::REDIRECT
Projekte
m2etis
library
include
m2etis
message
info
RoutingInfo.h
Generated on Mon Jan 25 2016 01:06:06 for m2etis by
1.8.9.1