X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdbos%2Fworkdir%2Ffilesystem%2FAbstract.hpp;fp=example%2Fdbos%2Fworkdir%2Ffilesystem%2FAbstract.hpp;h=0000000000000000000000000000000000000000;hb=a3b95648bd76140ef55e0b5941d423eee6c3856f;hp=de28336a346b6af9be037f895bdf753107ed0ef1;hpb=94fc4366adedbf26ca6ef3104f88d41fa85f5a72;p=anna.git diff --git a/example/dbos/workdir/filesystem/Abstract.hpp b/example/dbos/workdir/filesystem/Abstract.hpp deleted file mode 100644 index de28336..0000000 --- a/example/dbos/workdir/filesystem/Abstract.hpp +++ /dev/null @@ -1,69 +0,0 @@ -// ANNA - Anna is Not Nothingness Anymore // -// // -// (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo // -// // -// See project site at http://redmine.teslayout.com/projects/anna-suite // -// See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE // - - -#ifndef dbos_workdir_filesystem_Abstract_hpp -#define dbos_workdir_filesystem_Abstract_hpp - -#include -#include - -#include - -namespace workdir { - -namespace filesystem { - -using namespace anna; - -class Abstract { -public: - struct ClassType { enum _v { Directory, File }; }; - - typedef std::vector child_container; - typedef child_container::iterator child_iterator; - typedef child_container::const_iterator const_child_iterator; - - virtual ~Abstract (); - - Abstract* getParent () const throw () { return a_parent; } - ClassType::_v getClassType () const throw () { return a_classType; } - const std::string& getName () const throw () { return a_name; } - const std::string& getPath () const throw () { return a_path; } - - int child_size () const throw () { return a_children.size (); } - - child_iterator child_begin () throw () { return a_children.begin (); } - child_iterator child_end () throw () { return a_children.end (); } - static Abstract* child (child_iterator ii) throw () { return *ii; } - - const_child_iterator child_begin () const throw () { return a_children.begin (); } - const_child_iterator child_end () const throw () { return a_children.end (); } - static const Abstract* child (const_child_iterator ii) throw () { return *ii; } - - static std::string calculePath (const Abstract* parent, const std::string& shortPath) throw (); - - virtual void print (const int level) const throw () = 0; - -protected: - Abstract (const ClassType::_v, const std::string& name); - Abstract (const ClassType::_v, Abstract* parent, const std::string& name); - -private: - const ClassType::_v a_classType; - Abstract* a_parent; - const std::string a_name; - std::string a_path; - child_container a_children; - - Abstract (const Abstract&); -}; - -} -} - -#endif