Choreonoid  1.8
ItemPath.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_ITEM_PATH_H
6 #define CNOID_BASE_ITEM_PATH_H
7 
8 #include <string>
9 #include <vector>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class CNOID_EXPORT ItemPath
15 {
16 public:
17  typedef std::vector<std::string>::iterator iterator;
18 
19  ItemPath(const std::string& path);
20 
21  bool isAbsolute() { return isAbsolute_; }
22  bool isRelative() { return !isAbsolute_; }
23 
24  iterator begin() { return path.begin(); }
25  iterator end() { return path.end(); }
26 
27 private:
28  std::vector<std::string> path;
29  bool isAbsolute_;
30 };
31 
32 }
33 
34 #endif
cnoid::ItemPath::begin
iterator begin()
Definition: ItemPath.h:24
cnoid::ItemPath
Definition: ItemPath.h:14
cnoid::ItemPath::end
iterator end()
Definition: ItemPath.h:25
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::ItemPath::isAbsolute
bool isAbsolute()
Definition: ItemPath.h:21
cnoid::ItemPath::iterator
std::vector< std::string >::iterator iterator
Definition: ItemPath.h:17
cnoid::ItemPath::isRelative
bool isRelative()
Definition: ItemPath.h:22