X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/af9452155f0892e1d2862efad4a87861ca60867d..312c0eec08cfff18956ff4e238f6b6982bb0e721:/sgconf/config.h diff --git a/sgconf/config.h b/sgconf/config.h index bb4f360a..f5313ef9 100644 --- a/sgconf/config.h +++ b/sgconf/config.h @@ -18,11 +18,10 @@ * Author : Maxim Mamontov */ -#ifndef __STG_SGCONF_CONFIG_H__ -#define __STG_SGCONF_CONFIG_H__ +#pragma once #include "stg/common.h" -#include "stg/resetable.h" +#include "stg/optional.h" #include #include @@ -32,14 +31,14 @@ namespace SGCONF struct CONFIG { - RESETABLE configFile; - RESETABLE server; - RESETABLE port; - RESETABLE localAddress; - RESETABLE localPort; - RESETABLE userName; - RESETABLE userPass; - RESETABLE showConfig; + STG::Optional configFile; + STG::Optional server; + STG::Optional port; + STG::Optional localAddress; + STG::Optional localPort; + STG::Optional userName; + STG::Optional userPass; + STG::Optional showConfig; CONFIG & operator=(const CONFIG & rhs) { @@ -84,5 +83,3 @@ struct CONFIG }; } // namespace SGCONF - -#endif