1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
9 #ifndef dbos_workdir_filesystem_File_hpp
10 #define dbos_workdir_filesystem_File_hpp
12 #include "Abstract.hpp"
13 #include "Directory.hpp"
17 namespace filesystem {
21 class File : public Abstract {
23 File (Directory* parent, const std::string& name) : Abstract (ClassType::File, parent, name) {;}
25 void print (const int level) const ;
27 static File* down_cast (Abstract* abstract) {
28 return (abstract->getClassType () == ClassType::File) ? static_cast <File*> (abstract): NULL;
30 static const File* down_cast (const Abstract* abstract) {
31 return (abstract->getClassType () == ClassType::File) ? static_cast <const File*> (abstract): NULL;