TcpClient and TcpServer are now structs intead of classes Starting with UdpClient Added 2 new methods to StringConverter: Split and Trim ConfigReader: Changed ReadNodes return type to void, parameter of operator [] is now a std::string Starting with the VoidNetServer class which is an all in one for Tcp and Udp Finally implemented the methods for the ConfigReader
21 lines
309 B
C++
21 lines
309 B
C++
#ifndef CONFIG_HPP
|
|
#define CONFIG_HPP
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma once
|
|
#endif
|
|
|
|
struct Config
|
|
{
|
|
static void SetUsingConsole(bool value);
|
|
static bool GetUsingConsole();
|
|
|
|
static void SetLogToFile(bool value);
|
|
static bool GetLogToFile();
|
|
|
|
private:
|
|
static bool using_console;
|
|
static bool log_to_file;
|
|
};
|
|
|
|
#endif |