libnuklei
io
nuklei
OsuTxtObservationIO.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_OSUTXTOBSERVATIONSERIAL_H
8
#define NUKLEI_OSUTXTOBSERVATIONSERIAL_H
9
10
11
#include <
nuklei/Definitions.h
>
12
#include <
nuklei/ObservationIO.h
>
13
#include <
nuklei/OsuTxtObservation.h
>
14
15
16
namespace
nuklei
{
17
18
19
class
OsuTxtReader
:
public
ObservationReader
20
{
21
public
:
22
OsuTxtReader
(
const
std::string &observationArgs);
23
~
OsuTxtReader
();
24
25
Observation::Type type()
const
{
return
Observation::OSUTXT; }
26
27
void
reset();
28
29
protected
:
30
void
init_();
31
NUKLEI_UNIQUE_PTR<Observation> readObservation_();
32
private
:
33
std::ifstream in_;
34
std::string geometryFileName;
35
std::string appFileName;
36
37
unsigned
rows_;
38
unsigned
columns_;
39
unsigned
currentIndex_;
40
41
std::vector<bool> flags_;
42
std::vector<coord_t> x_;
43
std::vector<coord_t> y_;
44
std::vector<coord_t> z_;
45
std::vector<Vector3> rgb_;
46
};
47
48
}
49
50
#endif
51
nuklei
Public namespace.
Definition:
Color.cpp:9
OsuTxtObservation.h
nuklei::ObservationReader
Base class for kernel reader and point reader classes.
Definition:
ObservationIO.h:34
ObservationIO.h
Definitions.h
nuklei::OsuTxtReader
Definition:
OsuTxtObservationIO.h:19
© 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.