Continued work.
This commit is contained in:
1 parent
4286a7b449
commit
947eef21e2
12 files changed
+323
-95
No files matched your search
+21
-21
@@ -1,28 +1,28 @@
|
||||
#ifndef __DirectoryEntry_h__
|
||||
#define __DirectoryEntry_h__
|
||||
# define __DirectoryEntry_h__
|
||||
|
||||
#include "includes"
|
||||
# include "includes"
|
||||
|
||||
namespace coreutils {
|
||||
|
||||
class DirectoryEntry {
|
||||
|
||||
public:
|
||||
DirectoryEntry(struct dirent *entry) {
|
||||
memcpy(&this->entry, entry, sizeof(struct dirent));
|
||||
}
|
||||
|
||||
~DirectoryEntry() {}
|
||||
|
||||
std::string getName() {
|
||||
return std::string(entry.d_name);
|
||||
}
|
||||
|
||||
private:
|
||||
struct dirent entry;
|
||||
|
||||
};
|
||||
|
||||
|
||||
class DirectoryEntry {
|
||||
|
||||
public:
|
||||
DirectoryEntry(struct dirent *entry) {
|
||||
memcpy(&this->entry, entry, sizeof(struct dirent));
|
||||
}
|
||||
|
||||
~DirectoryEntry() {}
|
||||
|
||||
std::string getName() {
|
||||
return std::string(entry.d_name);
|
||||
}
|
||||
|
||||
private:
|
||||
struct dirent entry;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user