30 #ifndef __SFTOOLS_LOCATIONS_HPP__
31 #define __SFTOOLS_LOCATIONS_HPP__
70 typedef std::vector<std::string> Storage;
71 typedef Storage::iterator Iterator;
82 void add(std::string
const& path)
84 m_locations.push_back(path);
96 void remove(std::string
const& path)
98 Iterator it = std::find(m_locations.begin(), m_locations.end(), path);
99 if (it != m_locations.end())
101 m_locations.erase(it);
124 return m_locations.begin();
134 return m_locations.end();
168 #endif // __SFTOOLS_LOCATIONS_HPP__