Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

settings.cpp File Reference


Detailed Description

Implementation of Ishtar settings classes.

#include <vector>
#include <fstream>
#include <sstream>
#include <stack>
#include "settings.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

Namespaces

namespace  Ishtar

Defines

#define CHECK_NOT_EOF
 Macro that return false and an error message if parser encountered EOF.
#define CHECK_VAL
 Macro that return false and an error message if anything else then a value is encountered.

Functions

void initSettings (int argc, char *argv[])
 Create the settings object using arguments from argv[].
void cleanupSettings (void)
 Delete the settings object.

Variables

Settings * settings = NULL
 Unique global instance of Settings.


Define Documentation

#define CHECK_NOT_EOF
 

Value:

if (token.type == Token::END_OF_INPUT) \
        { \
             std::cerr << "!!! Scan (parser) error @ " << line << ':' << column << " : unexpected EOF" << std::endl; \
             return false; \
        }
Macro that return false and an error message if parser encountered EOF.

#define CHECK_VAL
 

Value:

if (token.type != Token::VAL) \
        { \
            std::cerr << "!!! Scan (parser) error @ " << line << ':' << column << " : value expected" << std::endl; \
            return false; \
        }
Macro that return false and an error message if anything else then a value is encountered.


Generated on Mon Oct 24 17:31:47 2005 for libishtarsettings by  doxygen 1.4.2