forked from maxLundin/os-find
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindOptions.h
53 lines (39 loc) · 1.13 KB
/
FindOptions.h
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
42
43
44
45
46
47
48
49
50
51
52
//
// Created by Павел Пономарев on 2019-04-11.
//
#pragma once
#include <string>
enum sizeType { MORE, LESS, EQUAL };
class FindOptions {
public:
FindOptions() = default;
size_t getInode() const;
void setInode(size_t inode);
size_t getSize() const;
void setSize(size_t size);
size_t getLinks() const;
void setLinks(size_t links);
const std::string& getRootPath() const;
void setRootPath(const std::string& rootPath);
const std::string& getName() const;
void setName(const std::string& name);
const std::string& getExecPath() const;
void setExecPath(const std::string& execPath);
sizeType getSizeType() const;
void setSizeType(sizeType sizeType);
bool ifHasName() const;
bool ifHasExecPath() const;
bool ifHasInode() const;
bool ifHasSize() const;
bool ifHasLinks() const;
private:
std::string mRootPath;
std::string mName;
std::string mExecPath;
size_t mInode;
size_t mSize;
size_t mLinks;
sizeType mSizeType;
bool hasName = false, hasExecPath = false,
hasInode = false, hasSize = false, hasLinks = false;
};