fixed push_whack_pop to also handle directories
[feisty_meow.git] / nucleus / library / filesystem / filename.h
index 940b6c037cfc717005a149ddc7c34a7bbfa2abc7..c1710c13e9328f66623abb911dfac745858468e6 100644 (file)
@@ -56,6 +56,8 @@ public:
     /*!< the "name_of_file" can itself be a directory. */
   filename(const filename &to_copy);  //!< copy constructor.
 
+  DEFINE_CLASS_NAME("filename");
+
   virtual ~filename();
 
   bool good() const;
@@ -63,6 +65,9 @@ public:
     /*!< this means that not only was the pathname parsed and found valid,
     but the file actually exists. */
 
+  void reset(const basis::astring &name);
+    //!< changes the file name held by the object.
+
   const basis::astring &raw() const;
     //!< returns the astring that we're holding onto for the path.
   basis::astring &raw();