36static time_t
ParseTime(
const char * cp,
bool bUtc=
true);
53 buser_sees_gmt=bUserSeesGmt;
60 buser_sees_gmt=bUserSeesGmt;
73 config_time_t(
const char * def_val,
const char *name,
const char *desc = NULL,
bool bUserSeesGmt=
false) :
config_string(def_val, name, desc)
76 buser_sees_gmt=bUserSeesGmt;
91virtual void CommitTestedValue(uint32_t permission_mask) {config_string::CommitTestedValue(permission_mask); tv=
config_time_t::ParseTime(val); };
100 operator time_t()
const {
return tv; };
123 pend_val = val = ci.val;
139 return sizeof(*this);
Lightweight alternative to C++ CString class.
Definition nbstring.h:118
const char * c_str() const
Method to pass a NBString as a constant char *.
Base class used to create configuration objects.
Definition config_obj.h:277
String Configuration Variable.
Definition config_obj.h:1055
Class to hold time configuration.
Definition config_time.h:29
virtual int Missing_ConfigEndMarker(void *&startp)
This is named so error messages make sense to user, old name was GetExtent.
Definition config_time.h:136
config_time_t(config_obj &owner, time_t def_val, const char *name, const char *desc=NULL, bool bUserSeesGmt=false)
Object constructor with the parent/owner leaf parameter.
Definition config_time.h:50
static NBString TimetoNBString(time_t tv, bool bUtc=true)
config_time_t(time_t def_val, const char *name, const char *desc=NULL)
Object constructor.
Definition config_time.h:86
static time_t ParseTime(NBString &ns, bool bUtc=true)
Definition config_time.h:37
config_time_t & operator=(const config_time_t &ci)
Copy one config_string object to another.
Definition config_time.h:121
void RenderValue(int fd, int len, const char *extra)
NBString GetAsLocalString()
Definition config_time.h:130
config_time_t(config_obj &owner, const char *def_val, const char *name, const char *desc=NULL, bool bUserSeesGmt=false)
Object constructor with the parent/owner leaf parameter.
Definition config_time.h:57
NBString GetAsGmtString()
Definition config_time.h:128
virtual void GetTypeValue(NBString &s)
Definition config_time.h:93
config_time_t & operator=(time_t t)
Assign the config_time_t object value from a anotherNBString object.
Definition config_time.h:109
bool ProcessValue(const char *pValue)
static time_t ParseTime(const char *cp, bool bUtc=true)
void RenderInput(int fd, int len, const char *extra)
config_time_t(const char *def_val, const char *name, const char *desc=NULL, bool bUserSeesGmt=false)
Object constructor.
Definition config_time.h:73
Configuration object header file.