remove ignored pt.2
This commit is contained in:
24
ofd/module.cpp
Normal file
24
ofd/module.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "module.h"
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <fstream>
|
||||
#include "../utils/utils.h"
|
||||
|
||||
OFDModule::OFDModule() {}
|
||||
|
||||
OFDModule::OFDModule(std::string path) {
|
||||
this->path = path;
|
||||
|
||||
std::ifstream settings_file(path);
|
||||
nlohmann::json settings = nlohmann::json::parse(settings_file);
|
||||
|
||||
this->name = from_utf8(settings["name"]);
|
||||
this->url = from_utf8(settings["url"]);
|
||||
}
|
||||
|
||||
std::wstring OFDModule::get_name() {
|
||||
return this->name;
|
||||
}
|
||||
std::wstring OFDModule::get_url() {
|
||||
return this->url;
|
||||
}
|
||||
3
ofd/ofd.cpp
Normal file
3
ofd/ofd.cpp
Normal file
@@ -0,0 +1,3 @@
|
||||
#include "ofd.h"
|
||||
|
||||
OFD::OFD() {}
|
||||
13
ofd/ofd.h
Normal file
13
ofd/ofd.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef OFD_H
|
||||
#define OFD_H
|
||||
|
||||
#include <string>
|
||||
|
||||
class OFD {
|
||||
|
||||
public:
|
||||
OFD();
|
||||
void ask_captcha();
|
||||
std::string request_and_parse_check(long fiscal_number, long fiscal_document, long fiscal_sign, std::string datetime, double total, std::string captcha);
|
||||
};
|
||||
#endif // OFD_H
|
||||
Reference in New Issue
Block a user