BlinkenArea - GitList
Repositories
Blog
Wiki
Blinker
Code
Commits
Branches
Tags
Search
Tree:
3032550
Branches
Tags
master
Blinker
src
linux
Directory.h
first version, plays videos to stdout
Stefan Schuermans
commited
3032550
at 2011-10-23 11:37:40
Directory.h
Blame
History
Raw
/* Blinker Copyright 2011 Stefan Schuermans <stefan@blinkenarea.org> Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html a blinkenarea.org project */ #ifndef DIRECTORY_H #define DIRECTORY_H #include <list> #include <string> #include "File.h" namespace Blinker { /// information about a directory class Directory: public File { public: /// type of directory entries enum Type { TypeSubdir, ///< subdirectory TypeFile ///< file }; public: /** * @brief constructor from path * @param[in] path path to directory */ Directory(const std::string &path); public: /** * @brief get list of entries in directory * @param[in] type type of directory entries to return * @param[out] entries list of directory entries */ void getEntries(Type type, std::list<std::string> &entries) const; /** * @brief get subdirectory * @param[in] name of subdirectory * @return subdirectory object */ Directory getSubdir(const std::string &name) const; /** * @brief get file in directory * @param[in] name of file * @return file object */ File getFile(const std::string &name) const; }; // class Directory } // namespace Blinker #endif // #ifndef DIRECTORY_H