/
data_loader.h
51 lines (47 loc) · 2.28 KB
/
data_loader.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
/* Copyright(C) 2023 by Trynity
All rights reserved. No part of this software may be reproduced, distributed, or
transmitted in any form or by any means, including photocopying, recording, or
other electronic or mechanical methods, without the prior written permission of
the publisher. This file is part of Quick vanish project. You can find full
policy at the end of the fle.
*/
#pragma once
#include <Windows.h>
#include <iostream>
#include <map>
#include <string>
namespace qvanish {
class DataLoader {
private:
std::map<std::string, std::string> data_;
bool loaded_;
public:
DataLoader();
void load_data();
inline std::string get_data(std::string label) noexcept {
return data_[label];
}
inline void push_data(std::string label, std::string data) {
data_.insert(make_pair(label, data));
}
};
} // namespace qvanish
/*You may not share, distribute, or reproduce in any way any copyrighted
* material, trademarks, or other proprietary information belonging to others
* without obtaining the prior written consent of the owner of such proprietary
* rights. It is Trend Micro�s policy to terminate this Agreement if you
* repeatedly infringe the copyright rights of others upon receipt of prompt
* notification to Trend Micro by the copyright owner or the copyright owner's
* legal agent. Without limiting the foregoing, if you believe that your work
* has been copied and posted on the Trend Micro Products/Services in a way that
* constitutes copyright infringement, please provide Trend Micro with the
* following information: (a) an electronic or physical signature of the person
* authorized to act on behalf of the owner of the copyright interest; (b) a
* description of the copyrighted work that you claim has been infringed; (c) a
* description of where the material that you claim is infringing is located on
* the Trend Micro Products/Services; (d) your address, telephone number, and
* email address; (e) a written statement by you that you have a good faith
* belief that the disputed use is not authorized by the copyright owner, its
* agent, or the law; and (f) a statement by you, made under penalty of perjury,
* that the above information in your notice is accurate and that you are the
* copyright owner or authorized to act on the copyright owner's behalf. */