瀏覽代碼

cleaned up namespace in snf_xci

master
Pete McNeil 4 年之前
父節點
當前提交
0997d2dc0a
共有 1 個文件被更改,包括 26 次插入26 次删除
  1. 26
    26
      snf_xci.hpp

+ 26
- 26
snf_xci.hpp 查看文件

@@ -11,68 +11,68 @@
// The snf_xci object parses the xml and presents the results on it's surface
// in easily used variables.

#ifndef snf_xci_included
#define snf_xci_included
#pragma once

#include "../CodeDweller/configuration.hpp"

namespace cd = codedweller;

class snf_xci { // SNF XCI message interpreter.
private:
ConfigurationElement Reader; // Our reader.
cd::ConfigurationElement Reader; // Our reader.
void SetupReader(); // Configure the reader.
ConfiguratorSetTrueOnComplete SNFWasParsed; // Configurator sets the ReadWasGood
cd::ConfiguratorSetTrueOnComplete SNFWasParsed; // Configurator sets the ReadWasGood
bool ReadWasGood; // flag at the end of the snf element.
void reset(); // Reset/initialize for the next read.

public:
snf_xci();
snf_xci(const char* bfr, int len);
snf_xci(string& input);
snf_xci(std::string& input);
bool read(const char* bfr, int len);
bool read(string& input);
bool read(std::string& input);

//// And now the interpreted results ////
bool good();
bool bad();

string scanner_scan_file;
std::string scanner_scan_file;
bool scanner_scan_xhdr;
bool scanner_scan_log;
string scanner_scan_ip;
std::string scanner_scan_ip;
int scanner_result_code;
string scanner_result_xhdr;
string scanner_result_log;
std::string scanner_result_xhdr;
std::string scanner_result_log;

string gbudb_set_ip;
string gbudb_set_type;
std::string gbudb_set_ip;
std::string gbudb_set_type;
int gbudb_set_bad_count;
int gbudb_set_good_count;

string gbudb_good_ip;
string gbudb_bad_ip;
string gbudb_test_ip;
string gbudb_drop_ip;
std::string gbudb_good_ip;
std::string gbudb_bad_ip;
std::string gbudb_test_ip;
std::string gbudb_drop_ip;

string gbudb_result_ip;
string gbudb_result_type;
std::string gbudb_result_ip;
std::string gbudb_result_type;
double gbudb_result_probability;
double gbudb_result_confidence;
int gbudb_result_bad_count;
int gbudb_result_good_count;
string gbudb_result_range;
std::string gbudb_result_range;
int gbudb_result_code;

string report_request_status_class;
string report_response;
std::string report_request_status_class;
std::string report_response;

string xci_server_command;
string xci_server_command_content;
string xci_server_response;
std::string xci_server_command;
std::string xci_server_command_content;
std::string xci_server_response;
int xci_server_response_code;

string xci_error_message;
std::string xci_error_message;

};

#endif


Loading…
取消
儲存