m2etis  0.4
NackDeliverInfo.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_NACKDELIVERINFO_H__
23 #define __M2ETIS_MESSAGE_NACKDELIVERINFO_H__
24 
25 #include "boost/shared_ptr.hpp"
26 
27 namespace m2etis {
28 namespace message {
29 
30  class NackDeliverInfo : public DeliverInfo {
31  public:
32  typedef boost::shared_ptr<NackDeliverInfo> Ptr;
33 
35 
36  virtual ~NackDeliverInfo() {}
37 
38  static bool doSerialize(const ActionType) {
39  return true;
40  }
41 
42  uint64_t nr;
43 
44  std::vector<uint64_t> dropped;
45 
46  template<typename Archive>
47  void serialize(Archive & ar, const unsigned int version) {
48  ar & nr;
49  ar & dropped;
50  }
51  };
52 
53 } /* namespace message */
54 } /* namespace m2etis */
55 
56 #endif /* __M2ETIS_MESSAGE_NACKDELIVERINFO_H__ */
57 
std::vector< uint64_t > dropped
void serialize(Archive &ar, const unsigned int version)
boost::shared_ptr< NackDeliverInfo > Ptr
static bool doSerialize(const ActionType)