2004-05-16 14:58:40 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
2006-12-15 22:18:59 +00:00
|
|
|
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
|
|
|
* See: http://www.inspircd.org/wiki/index.php/Credits
|
|
|
|
*
|
2004-05-16 14:58:40 +00:00
|
|
|
* This program is free but copyrighted software; see
|
|
|
|
* the file COPYING for details.
|
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
2003-01-23 19:45:57 +00:00
|
|
|
|
|
|
|
#ifndef __WORLD_H
|
|
|
|
#define __WORLD_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <deque>
|
2006-08-19 00:23:15 +00:00
|
|
|
#include <map>
|
2006-08-19 00:31:18 +00:00
|
|
|
#include <vector>
|
2003-01-23 19:45:57 +00:00
|
|
|
|
2007-06-17 18:45:22 +00:00
|
|
|
/** A cached text file stored with its contents as lines
|
|
|
|
*/
|
2003-07-22 21:56:38 +00:00
|
|
|
typedef std::deque<std::string> file_cache;
|
2007-06-17 18:45:22 +00:00
|
|
|
|
|
|
|
/** A configuration key and value pair
|
|
|
|
*/
|
2006-04-04 05:55:54 +00:00
|
|
|
typedef std::pair< std::string, std::string > KeyVal;
|
2007-06-17 18:45:22 +00:00
|
|
|
|
|
|
|
/** A list of related configuration keys and values
|
|
|
|
*/
|
2006-04-04 05:55:54 +00:00
|
|
|
typedef std::vector< KeyVal > KeyValList;
|
2007-06-17 18:45:22 +00:00
|
|
|
|
|
|
|
/** An entire config file, built up of KeyValLists
|
|
|
|
*/
|
2006-04-04 05:55:54 +00:00
|
|
|
typedef std::multimap< std::string, KeyValList > ConfigDataHash;
|
2003-01-23 19:45:57 +00:00
|
|
|
|
|
|
|
#endif
|
2007-06-17 18:45:22 +00:00
|
|
|
|