X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ffilesystem%2Ffilename.h;h=06f7c2542970b6e57eb8e6ed505e1f125619b0a4;hb=d60e7a2467ab8be80a06ba670ccba1819ca7c0e4;hp=940b6c037cfc717005a149ddc7c34a7bbfa2abc7;hpb=1d0e3f784ca8c86185013026e8500f8460aefe8e;p=feisty_meow.git diff --git a/nucleus/library/filesystem/filename.h b/nucleus/library/filesystem/filename.h index 940b6c03..06f7c254 100644 --- a/nucleus/library/filesystem/filename.h +++ b/nucleus/library/filesystem/filename.h @@ -27,6 +27,11 @@ class status_info; // define useful constant for filesystem path length. #ifndef MAX_ABS_PATH #ifdef __WIN32__ + // winsock support... +// #undef FD_SETSIZE +// #define FD_SETSIZE 1000 + // if you don't set this, you can only select on a default of 64 sockets. + #include #include #define MAX_ABS_PATH MAX_PATH #else @@ -56,6 +61,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 +70,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();