VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
#include <boost/regex.hpp>
14
15
namespace
MAKVRinTerra
16
{
17
class
DT_DLL_features
DtFeaturesColumnPrinter
18
{
19
public
:
20
class
DT_DLL_features
Column
21
{
22
public
:
23
Column
(
unsigned
width = 0);
24
25
void
setValue(std::string value,
unsigned
line);
26
std::string value(
unsigned
line)
const
;
27
28
unsigned
width
()
const
{
return
myWidth; }
29
void
updateWidth(
unsigned
);
30
31
private
:
32
typedef
std::vector<std::string>
ValueVector
;
33
34
unsigned
myWidth
;
35
ValueVector
myValues
;
36
};
37
38
typedef
std::vector<std::string>
Attributes
;
39
typedef
std::vector<boost::basic_regex<char> >
RegexList
;
40
41
DtFeaturesColumnPrinter
(
const
Attributes
& =
Attributes
());
42
43
void
run(
const
DtFeatureSet
&,
unsigned
max = 0);
44
45
void
print
(std::ostream&);
46
47
private
:
48
void
processFeature(
const
DtFeature
&,
unsigned
max);
49
void
processAttribute(
const
DtFeature::Key
&,
const
DtFeature::Attribute
&);
50
51
typedef
std::map<DtFeature::Key, Column>
ColumnMap
;
52
53
unsigned
myLineNumber
;
54
ColumnMap
myColumns
;
55
RegexList
myAttribs
;
56
};
57
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)