VR-Forces 4.1 Class Documentation
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 {
16  {
17  public:
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;
34  };
35 
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;
50  };
51 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)