-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParams.hpp
More file actions
35 lines (31 loc) · 1.01 KB
/
Copy pathParams.hpp
File metadata and controls
35 lines (31 loc) · 1.01 KB
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
// Created by Murtaza & Yash on 2/14/2025.
#pragma once
#include "tools.hpp"
using namespace std;
class Params {
private:
char* pathname;
char* filename{};
ofstream out;
bool switches[4]{};
string command;
string wlist="";
public:
Params(int argc,char *const argv[]);
Params(const Params&) = delete; // Explicitly delete the copy constructor
Params& operator=(const Params&) = delete; // Explicitly delete copy assignment
Params(Params&&) = default; // Allow move constructor
Params& operator=(Params&&) = default; // Allow move assignment
void print();
bool isCaseInSensitive() const {return switches[1];}
bool isVerbose()const {return switches[0];}
string getWlist()const {return wlist;}
string getPathName() const {
return pathname;
}
ofstream&& getOfstream(){return move(out);}
};
inline void usage() {
printf("\nUsage: options [-vo] [--verbose] [--ignore]\n"
"\t\t [--output filename] [--dir path] \n");
}