Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

hyp.ker.dir.h

00001 /*
00002 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
00003  Hyperion Pattern.
00004  Hyperion Pattern is a part of the Hyperion Project.
00005 ----------------------------------------------------------
00006  Copyright (c) 2001 Pierre Rebours.
00007 
00008  This library is free software; you can redistribute it and/or
00009  modify it under the terms of the GNU Lesser General Public
00010  License as published by the Free Software Foundation; either
00011  version 2.1 of the License, or (at your option) any later version.
00012 
00013  This library is distributed in the hope that it will be useful,
00014  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016  
00017  See hyp.license.txt file for more information about the license.
00018  
00019  Web: http://lagrandeporte.multimania.com/hyperion
00020  Email: pierre_rebours@yahoo.com
00021 ----------------------------------------------------------
00022  CVS
00023  $Log$
00024 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
00025 */
00026 
00027 #if !defined _hyp_dir_h_
00028 #define _hyp_dir_h_
00029 
00030 #ifndef hyp_KERNEL_CORE_INSIDE
00031 #error Inclusion not allowed (include hyp.kernel.core.h instead)
00032 #endif
00033 
00034 
00035 
00036 class hyp_ker_DLL CDir {
00037 #ifdef hyp_WIN32
00038         std::string m_Path;
00039         HANDLE m_H;
00040         WIN32_FIND_DATA m_FD;
00041 #endif
00042         std::string m_Pattern;
00043         std::string GetFullName(const std::string&);
00044 public:
00045         CDir();
00046         virtual ~CDir();
00047         std::string Search();
00048         void Rewind(const std::string& ="*");
00049         void Open(const std::string&,bool =false);
00050         bool IsSubDir();
00051         bool IsInDir(const std::string&,bool =false);
00052         void CreateFile(const std::string&) const;
00053         void DeleteFile(const std::string&) const;
00054         std::string GetPath() const;
00055 };
00056 
00057 
00058 #endif

Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.