config_manager.cc File Reference

#include <stdio.h>
#include "uuid/uuid.h"
#include "common.h"
#include "config_manager.h"
#include "storage.h"
#include <sys/types.h>
#include <sys/stat.h>
#include "tools.h"
#include "string_converter.h"
#include "metadata_handler.h"

Go to the source code of this file.

Defines

#define NEW_OPTION(optval)   opt = Ref<Option> (new Option(optval));
#define SET_OPTION(opttype)   options->set(RefCast(opt, ConfigOption), opttype);
#define NEW_INT_OPTION(optval)
#define SET_INT_OPTION(opttype)   options->set(RefCast(int_opt, ConfigOption), opttype);
#define NEW_BOOL_OPTION(optval)
#define SET_BOOL_OPTION(opttype)   options->set(RefCast(bool_opt, ConfigOption), opttype);
#define NEW_DICT_OPTION(optval)
#define SET_DICT_OPTION(opttype)   options->set(RefCast(dict_opt, ConfigOption), opttype);
#define NEW_STRARR_OPTION(optval)
#define SET_STRARR_OPTION(opttype)   options->set(RefCast(str_array_opt, ConfigOption), opttype);
#define NEW_AUTOSCANLIST_OPTION(optval)
#define SET_AUTOSCANLIST_OPTION(opttype)   options->set(RefCast(alist_opt, ConfigOption), opttype);
#define NEW_OBJDICT_OPTION(optval)
#define SET_OBJDICT_OPTION(opttype)   options->set(RefCast(obj_dict_opt, ConfigOption), opttype);

Functions

 SINGLETON_MUTEX (ConfigManager, false)

Detailed Description

Definition in file config_manager.cc.


Define Documentation

#define NEW_AUTOSCANLIST_OPTION ( optval   ) 
Value:
alist_opt = \
                       Ref<AutoscanListOption> (new AutoscanListOption(optval));

Definition at line 877 of file config_manager.cc.

Referenced by ConfigManager::validate().

#define NEW_BOOL_OPTION ( optval   ) 
Value:
bool_opt = \
                         Ref<BoolOption> (new BoolOption(optval));

Definition at line 862 of file config_manager.cc.

Referenced by ConfigManager::validate().

#define NEW_DICT_OPTION ( optval   ) 
Value:
dict_opt =  \
                         Ref<DictionaryOption> (new DictionaryOption(optval));

Definition at line 867 of file config_manager.cc.

Referenced by ConfigManager::validate().

#define NEW_INT_OPTION ( optval   ) 
Value:
int_opt = \
                         Ref<IntOption> (new IntOption(optval));

Definition at line 857 of file config_manager.cc.

Referenced by ConfigManager::validate().

#define NEW_OBJDICT_OPTION ( optval   ) 
Value:
obj_dict_opt = \
    Ref<ObjectDictionaryOption> (new ObjectDictionaryOption(optval));

Definition at line 894 of file config_manager.cc.

#define NEW_OPTION ( optval   )     opt = Ref<Option> (new Option(optval));

Definition at line 854 of file config_manager.cc.

Referenced by ConfigManager::validate().

#define NEW_STRARR_OPTION ( optval   ) 
Value:
str_array_opt = \
                         Ref<StringArrayOption> (new StringArrayOption(optval));

Definition at line 872 of file config_manager.cc.

Referenced by ConfigManager::validate().

#define SET_AUTOSCANLIST_OPTION ( opttype   )     options->set(RefCast(alist_opt, ConfigOption), opttype);

Definition at line 879 of file config_manager.cc.

Referenced by ConfigManager::validate().

#define SET_BOOL_OPTION ( opttype   )     options->set(RefCast(bool_opt, ConfigOption), opttype);

Definition at line 864 of file config_manager.cc.

Referenced by ConfigManager::validate().

#define SET_DICT_OPTION ( opttype   )     options->set(RefCast(dict_opt, ConfigOption), opttype);

Definition at line 869 of file config_manager.cc.

Referenced by ConfigManager::validate().

#define SET_INT_OPTION ( opttype   )     options->set(RefCast(int_opt, ConfigOption), opttype);

Definition at line 859 of file config_manager.cc.

Referenced by ConfigManager::validate().

#define SET_OBJDICT_OPTION ( opttype   )     options->set(RefCast(obj_dict_opt, ConfigOption), opttype);

Definition at line 896 of file config_manager.cc.

#define SET_OPTION ( opttype   )     options->set(RefCast(opt, ConfigOption), opttype);

Definition at line 855 of file config_manager.cc.

Referenced by ConfigManager::validate().

#define SET_STRARR_OPTION ( opttype   )     options->set(RefCast(str_array_opt, ConfigOption), opttype);

Definition at line 874 of file config_manager.cc.

Referenced by ConfigManager::validate().


Function Documentation

SINGLETON_MUTEX ( ConfigManager  ,
false   
)

Generated on Fri Mar 26 20:16:54 2010 for MediaTomb by  doxygen 1.6.1