Main Page | Class List | File List | Class Members | File Members

database.h File Reference


Detailed Description

    begin                : 
    written by           : 
    CVS                  : $RCSfile: database_8h.html,v $
                           $Revision: 1.1 $
						   $Date: 2012/07/19 10:01:43 $

Definition in file database.h.#include <map>
#include <fstream>
#include "demo_header.h"

Include dependency graph for database.h:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Classes

class  Database
 Simple text-file based database for use in the demo_db application. More...

Defines

#define MAXLINESIZE   1000
 Maximum length of a single line of the database file.
#define CONTROL_CHAR   '@'
 When use as the first character on a line, the line is treated specially, according to the second character.
#define KEY_CHAR   '>'
 Used after the CONTROL_CHAR, indicates that this line contains a key.
#define COMMENT_CHAR   '#'
 Used after the CONTROL_CHAR to place a comment into the file; functionally ignored.

Typedefs

typedef map< string, string > db_map_type
 Map for loading the database into memory. Contains two strings: a key and its data.


Define Documentation

#define CONTROL_CHAR   '@'
 

When use as the first character on a line, the line is treated specially, according to the second character.

When the second character is unknown, the line is ignored. Definition at line 29 of file database.h.


Generated on Thu Jun 16 15:47:18 for pc_demo.kdevelop by doxygen 1.3.8