database.h File Reference

#include "externs.h"
#include <list>
#include "sqldbm.h"

Include dependency graph for database.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DPTR_COERCE   char *

Typedefs

typedef bool(* db_find_filter )(std::string key, std::string body)

Functions

void databaseSystemInit ()
void databaseSystemShutdown ()
datum database_fetch (DBM *database, const std::string &key)
std::vector< std::stringdatabase_find_keys (DBM *database, const std::string &regex, bool ignore_case=false, db_find_filter filter=NULL)
std::vector< std::stringdatabase_find_bodies (DBM *database, const std::string &regex, bool ignore_case=false, db_find_filter filter=NULL)
std::string getWeightedSpeechString (const std::string &key, const std::string &suffix, const int weight=-1)
std::string getQuoteString (const std::string &key)
std::string getLongDescription (const std::string &key)
std::string getWeightedRandomisedDescription (const std::string &key)
std::vector< std::stringgetLongDescKeysByRegex (const std::string &regex, db_find_filter filter=NULL)
std::vector< std::stringgetLongDescBodiesByRegex (const std::string &regex, db_find_filter filter=NULL)
std::string getGameStartDescription (const std::string &key)
std::string getShoutString (const std::string &monst, const std::string &suffix="")
std::string getSpeakString (const std::string &key)
std::string getRandNameString (const std::string &itemtype, const std::string &suffix="")
std::string getHelpString (const std::string &topic)
std::string getMiscString (const std::string &misc, const std::string &suffix="")
std::vector< std::stringgetAllFAQKeys (void)
std::string getFAQ_Question (const std::string &key)
std::string getFAQ_Answer (const std::string &question)


Define Documentation

#define DPTR_COERCE   char *


Typedef Documentation

typedef bool(* db_find_filter)(std::string key, std::string body)


Function Documentation

datum database_fetch ( DBM *  database,
const std::string key 
)

Here is the call graph for this function:

std::vector<std::string> database_find_bodies ( DBM *  database,
const std::string regex,
bool  ignore_case = false,
db_find_filter  filter = NULL 
)

Here is the call graph for this function:

std::vector<std::string> database_find_keys ( DBM *  database,
const std::string regex,
bool  ignore_case = false,
db_find_filter  filter = NULL 
)

Here is the call graph for this function:

void databaseSystemInit (  ) 

Here is the call graph for this function:

void databaseSystemShutdown (  ) 

Here is the call graph for this function:

std::vector<std::string> getAllFAQKeys ( void   ) 

Here is the call graph for this function:

std::string getFAQ_Answer ( const std::string question  ) 

Here is the call graph for this function:

std::string getFAQ_Question ( const std::string key  ) 

Here is the call graph for this function:

std::string getGameStartDescription ( const std::string key  ) 

Here is the call graph for this function:

std::string getHelpString ( const std::string topic  ) 

Here is the call graph for this function:

std::vector<std::string> getLongDescBodiesByRegex ( const std::string regex,
db_find_filter  filter = NULL 
)

Here is the call graph for this function:

std::vector<std::string> getLongDescKeysByRegex ( const std::string regex,
db_find_filter  filter = NULL 
)

Here is the call graph for this function:

std::string getLongDescription ( const std::string key  ) 

Here is the call graph for this function:

std::string getMiscString ( const std::string misc,
const std::string suffix = "" 
)

std::string getQuoteString ( const std::string key  ) 

Here is the call graph for this function:

std::string getRandNameString ( const std::string itemtype,
const std::string suffix = "" 
)

std::string getShoutString ( const std::string monst,
const std::string suffix = "" 
)

Here is the call graph for this function:

std::string getSpeakString ( const std::string key  ) 

Here is the call graph for this function:

std::string getWeightedRandomisedDescription ( const std::string key  ) 

std::string getWeightedSpeechString ( const std::string key,
const std::string suffix,
const int  weight = -1 
)


Generated on Thu Jan 13 13:03:47 2011 by  doxygen 1.5.6