CARMA C++
SeqNoInfo.h
1 #ifndef CARMA_CORRELATOR_OBSRECORD2_SEQNOINFO_H
2 #define CARMA_CORRELATOR_OBSRECORD2_SEQNOINFO_H
3 
4 #include "carma/util/PthreadRWLock.h"
5 
6 
7 namespace carma {
8 namespace correlator {
9 namespace obsRecord2 {
10 
11 
12 class SeqNoInfo {
13  public:
14  SeqNoInfo( int bwSeqNo,
15  bool bwSeqNoSuccess );
16 
17  virtual ~SeqNoInfo( );
18 
19  void setInfo( const int * bwSeqNo,
20  const bool * bwSeqNoSuccess );
21 
22  void getInfo( int * bwSeqNo,
23  bool * bwSeqNoSuccess ) const;
24 
25  private:
26  mutable util::PthreadRWLock guard_;
27  int bwSeqNo_;
28  bool bwSeqNoSuccess_;
29 };
30 
31 
32 } // namespace carma::correlator::obsRecord2
33 } // namespace carma::correlator
34 } // namespace carma
35 
36 
37 #endif