VR-Forces 4.1.1 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
13
namespace
MAKVRinTerra
14
{
15
class
DT_DLL_features
DtFeaturesColumnPrinter
16
{
17
public
:
18
class
DT_DLL_features
Column
19
{
20
public
:
21
Column
(
unsigned
width = 0);
22
23
void
setValue(std::string value,
unsigned
line);
24
std::string value(
unsigned
line)
const
;
25
26
unsigned
width
()
const
{
return
myWidth; }
27
void
updateWidth(
unsigned
);
28
29
private
:
30
typedef
std::vector<std::string>
ValueVector
;
31
32
unsigned
myWidth
;
33
ValueVector
myValues
;
34
};
35
36
DtFeaturesColumnPrinter
();
37
38
void
run(
const
DtFeatureSet
&,
unsigned
max = 0);
39
40
void
print
(std::ostream&);
41
42
private
:
43
void
processFeature(
const
DtFeature
&,
unsigned
max);
44
void
processAttribute(
const
DtFeature::Key
&,
const
DtFeature::Attribute
&);
45
46
typedef
std::map<DtFeature::Key, Column>
ColumnMap
;
47
48
unsigned
myLineNumber
;
49
ColumnMap
myColumns
;
50
};
51
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)