VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
features
featuresColumnPrinter.h
Go to the documentation of this file.
1
2
3
4
5
#pragma once
6
7
#include <
features/feature.h
>
8
#include <
features/featureSet.h
>
9
10
#include <vector>
11
#include <iosfwd>
12
#include <set>
13
14
namespace
MAKVRinTerra
15
{
16
class
DT_DLL_features
DtFeaturesColumnPrinter
17
{
18
public
:
19
class
DT_DLL_features
Column
20
{
21
public
:
22
Column
(
unsigned
width = 0);
23
24
void
setValue(std::string value,
unsigned
line);
25
std::string value(
unsigned
line)
const
;
26
27
unsigned
width
()
const
{
return
myWidth; }
28
void
updateWidth(
unsigned
);
29
30
private
:
31
typedef
std::vector<std::string>
ValueVector
;
32
33
unsigned
myWidth
;
34
ValueVector
myValues
;
35
};
36
37
typedef
std::set<DtFeature::Key::String>
Attributes
;
38
39
DtFeaturesColumnPrinter
(
Attributes
=
Attributes
());
40
41
void
run(
const
DtFeatureSet
&,
unsigned
max = 0);
42
43
void
print(std::ostream&);
44
45
private
:
46
void
processFeature(
const
DtFeature
&,
unsigned
max);
47
void
processAttribute(
const
DtFeature::Key
&,
const
DtFeature::Attribute
&);
48
49
typedef
std::map<DtFeature::Key, Column>
ColumnMap
;
50
51
unsigned
myLineNumber
;
52
ColumnMap
myColumns
;
53
boost::scoped_ptr<Attributes>
myAttribs
;
54
};
55
}
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)