Choreonoid  1.1
PlainSeqFormatLoader.h
説明を見る。
1 
6 #ifndef CNOID_UTIL_PLAIN_SEQ_FILE_LOADER_H_INCLUDED
7 #define CNOID_UTIL_PLAIN_SEQ_FILE_LOADER_H_INCLUDED
8 
9 #include <list>
10 #include <vector>
11 #include <string>
12 #include "exportdecl.h"
13 
14 namespace cnoid {
15 
17  {
18  public:
19 
20  typedef std::list< std::vector<double> > Seq;
21  typedef Seq::iterator iterator;
22 
23  bool load(const std::string& filename);
24 
25  inline iterator begin() { return seq.begin(); }
26  inline iterator end() { return seq.end(); }
27 
28  inline int numParts() { return numParts_; }
29  inline int numFrames() { return numFrames_; }
30  inline double timeStep() { return timeStep_; }
31 
32  const std::string& errorMessage();
33 
34  private:
35 
36  Seq seq;
37  int numParts_;
38  int numFrames_;
39  double timeStep_;
40  std::string errorMessage_;
41  };
42 }
43 
44 #endif