view include/IConfig.hpp @ 66:86584ae719fc

Fix problem with header fixed #8, add test for all header fix #9, #11
author daedric <d43dr1c@gmail.com>
date Tue, 30 Mar 2010 23:02:51 +0200
parents e16869cd9773
children dda89f1d48c6
line wrap: on
line source

#ifndef __ZIA_API_ICONFIG_HPP__
# define __ZIA_API_ICONFIG_HPP__

# include <map>
# include <string>

namespace   zia
{
    namespace   api
    {
        /**
         * @brief Represents the interface that the configuration handler must
         * respect to interact with a module.
         */
        class   IConfig
        {
        public:
            typedef std::map<std::string, std::string>  ValueMap;

            virtual ~IConfig(void) { }

            /**
             * @brief Get the configuration entries.
             *
             * At the moment we return a map of strings. We will see if more
             * complex data structure is required.
             *
             * @return the map of key/value found in configuration file.
             */
            virtual const ValueMap &    getEntries(void) const = 0;
        };
    };
};

#endif	/* ! __ZIA_API_ICONFIG_HPP__ */