[go: up one dir, main page]

Menu

[r189]: / tags / 0.8 / porg / util.h  Maximize  Restore  History

Download this file

43 lines (28 with data), 747 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//=======================================================================
// util.h
//-----------------------------------------------------------------------
// This file is part of the package porg
// Copyright (C) 2015 David Ricart
// For more information visit http://porg.sourceforge.net
//=======================================================================
#ifndef PORG_UTIL_H
#define PORG_UTIL_H
#include "config.h"
#include <dirent.h>
#include <iosfwd>
namespace Porg
{
std::string clear_path(std::string const&);
class Dir
{
public:
Dir(std::string const&);
~Dir();
bool read(std::string&);
void rewind();
private:
DIR* m_dir;
struct dirent* m_dirent;
}; // class Dir
} // namespace Porg
#endif // PORG_UTIL_H