#include <FileInfo.hpp>
Public Member Functions | |
| void | append (const FileInfo &t_fi) |
| Adds a new FileInfo object on to this collection. More... | |
| void | append (const Files &t_files) |
| Adds all of the FileInfo objects in the given Files object to this one. More... | |
| template<typename InItr > | |
| void | append (const InItr &begin, const InItr &end) |
| Generic templated function for appending a collection of FileInfo objects to this. More... | |
| Files | complete (const openstudio::path &t_basePath) const |
| Files () | |
| Default constructor. More... | |
| Files (const std::vector< FileInfo > &t_files) | |
| Constructs a Files object from a vector of FileInfo objects. More... | |
| const std::vector< FileInfo > & | files () const |
| Returns a vector of the accumulated FileInfo objects. More... | |
| std::vector< FileInfo > & | files () |
| Returns a vector of the accumulated FileInfo objects. More... | |
| Files | getAllByExtension (const std::string &t_ext) const |
| Returns all FileInfo objects in the collection that match the given extension as a new Files object. More... | |
| Files | getAllByFilename (const std::string &t_filename) const |
| Returns all FileInfo objects matching the given filename as a new Files object. More... | |
| Files | getAllByKey (const std::string &t_key) const |
| Returns all FileInfo objects that match the given key as a new Files object. More... | |
| Files | getAllByRegex (const std::string &t_regex) const |
| Returns all FileInfo objects that match the given regular expression as a new Files object. More... | |
| const FileInfo & | getLastByExtension (const std::string &t_ext) const |
| Returns the last FileInfo object in the collection that matches the given extension. More... | |
| FileInfo & | getLastByExtension (const std::string &t_ext) |
| Returns the last FileInfo object in the collection that matches the given extension. More... | |
| const FileInfo & | getLastByFilename (const std::string &t_filename) const |
| Returns last FileInfo object matching the given filename. More... | |
| FileInfo & | getLastByFilename (const std::string &t_filename) |
| Returns last FileInfo object matching the given filename. More... | |
| const FileInfo & | getLastByKey (const std::string &t_key) const |
| Returns the last FileInfo object in the collection with the matching keyname. More... | |
| FileInfo & | getLastByKey (const std::string &t_key) |
| Returns the last FileInfo object in the collection with the matching keyname. More... | |
| const FileInfo & | getLastByRegex (const std::string &t_regex) const |
| Returns the last FileInfo object in the collection that matches the given regular expression. More... | |
| FileInfo & | getLastByRegex (const std::string &t_regex) |
| Returns the last FileInfo object in the collection that matches the given regular expression. More... | |
| bool | operator== (const Files &t_rhs) const |
Represents a collection of FileInfo objects.
A Files collection always maintains the original order of the FileInfo objects it was created from and were subsequently added to it.
|
inline |
Default constructor.
|
inlineexplicit |
|
inline |
Adds a new FileInfo object on to this collection.
|
inline |
|
inline |
Generic templated function for appending a collection of FileInfo objects to this.
|
inline |
|
inline |
Returns a vector of the accumulated FileInfo objects.
|
inline |
Returns a vector of the accumulated FileInfo objects.
| Files openstudio::runmanager::Files::getAllByExtension | ( | const std::string & | t_ext | ) | const |
| Files openstudio::runmanager::Files::getAllByFilename | ( | const std::string & | t_filename | ) | const |
| Files openstudio::runmanager::Files::getAllByKey | ( | const std::string & | t_key | ) | const |
| Files openstudio::runmanager::Files::getAllByRegex | ( | const std::string & | t_regex | ) | const |
| const FileInfo& openstudio::runmanager::Files::getLastByExtension | ( | const std::string & | t_ext | ) | const |
Returns the last FileInfo object in the collection that matches the given extension.
const version
| [in] | t_ext | Extension to match |
| FileInfo& openstudio::runmanager::Files::getLastByExtension | ( | const std::string & | t_ext | ) |
Returns the last FileInfo object in the collection that matches the given extension.
non-const version
| [in] | t_ext | Extension to match |
| const FileInfo& openstudio::runmanager::Files::getLastByFilename | ( | const std::string & | t_filename | ) | const |
Returns last FileInfo object matching the given filename.
Const version
| [in] | t_filename | Filename to match |
| FileInfo& openstudio::runmanager::Files::getLastByFilename | ( | const std::string & | t_filename | ) |
Returns last FileInfo object matching the given filename.
non-Const version
| [in] | t_filename | Filename to match |
| const FileInfo& openstudio::runmanager::Files::getLastByKey | ( | const std::string & | t_key | ) | const |
Returns the last FileInfo object in the collection with the matching keyname.
const version
| [in] | t_key | Key to look up |
| FileInfo& openstudio::runmanager::Files::getLastByKey | ( | const std::string & | t_key | ) |
Returns the last FileInfo object in the collection with the matching keyname.
non-const version
| [in] | t_key | Key to look up |
| const FileInfo& openstudio::runmanager::Files::getLastByRegex | ( | const std::string & | t_regex | ) | const |
Returns the last FileInfo object in the collection that matches the given regular expression.
Const version. Searches are case insensitive
| [in] | t_regex | RegEx to look up |
| FileInfo& openstudio::runmanager::Files::getLastByRegex | ( | const std::string & | t_regex | ) |
Returns the last FileInfo object in the collection that matches the given regular expression.
non-Const version. Searches are case insensitive
| [in] | t_regex | RegEx to look up |
| bool openstudio::runmanager::Files::operator== | ( | const Files & | t_rhs | ) | const |