PCDObservationIO.h
Go to the documentation of this file.
1 // (C) Copyright Renaud Detry 2007-2015.
2 // Distributed under the GNU General Public License and under the
3 // BSD 3-Clause License (See accompanying file LICENSE.txt).
4 
5 /** @file */
6 
7 #ifndef NUKLEI_PCDOBSERVATIONSERIAL_H
8 #define NUKLEI_PCDOBSERVATIONSERIAL_H
9 
10 
11 #include <nuklei/Definitions.h>
12 #include <nuklei/ObservationIO.h>
13 #include <nuklei/PCDObservation.h>
15 
16 
17 namespace nuklei {
18 
19 
20  class PCDReader : public KernelReader
21  {
22  public:
23  PCDReader(const std::string &observationFileName);
24  ~PCDReader();
25 
26  Observation::Type type() const { return Observation::PCD; }
27  protected:
28  void init_();
29  NUKLEI_UNIQUE_PTR<Observation> readObservation_();
30  };
31 
32  class PCDWriter : public KernelWriter
33  {
34  public:
35  PCDWriter(const std::string &observationFileName);
36  ~PCDWriter();
37 
38  Observation::Type type() const { return Observation::PCD; }
39 
40  NUKLEI_UNIQUE_PTR<Observation> templateObservation() const
41  { return NUKLEI_UNIQUE_PTR<Observation>(NUKLEI_MOVE(new PCDObservation)); }
42 
43  void writeBuffer();
44 
45  };
46 
47 }
48 
49 #endif
50 
Public namespace.
Definition: Color.cpp:9
© Copyright 2007-2013 Renaud Detry.
Distributed under the terms of the GNU General Public License (GPL).
(See accompanying file LICENSE.txt or copy at http://www.gnu.org/copyleft/gpl.html.)
Revised Sun Sep 13 2020 19:10:06.