taskrambler  0.1.9
Web server and task management solution.
config/value.h File Reference
#include <sys/types.h>
#include "hash.h"
#include "class.h"
+ Include dependency graph for config/value.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_CONFIG_LINE   256
 
#define CONFSTRA(val)   ((val)->value).string, (val)->nvalue
 

Enumerations

enum  ConfigValueType { CONFIG_VALUE_NUMERIC = 0, CONFIG_VALUE_STRING = 1 }
 

Functions

 CLASS (ConfigValue)
 

Detailed Description

Author
Georg Hopp

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file config/value.h.

Macro Definition Documentation

#define CONFSTRA (   val)    ((val)->value).string, (val)->nvalue

Definition at line 33 of file config/value.h.

Referenced by main().

#define MAX_CONFIG_LINE   256

Definition at line 31 of file config/value.h.

Enumeration Type Documentation

Enumerator
CONFIG_VALUE_NUMERIC 
CONFIG_VALUE_STRING 

Definition at line 36 of file config/value.h.

Function Documentation

CLASS ( ConfigValue  )

Definition at line 41 of file config/value.h.

References string.

41  {
42  union {
43  char * string;
44  long long number;
45  } value;
46 
47  size_t nvalue;
48  ConfigValueType type;
49 
50  unsigned long hash;
51 };
static char * string
ConfigValueType
Definition: config/value.h:36