db.h revision 6fba19689c2a3be1ec04ea7a9210ab428325d415
/*
* Functions to keep a listing of all modules in the system. Has its
* own file mostly for abstraction reasons, but is pretty simple
* otherwise.
*
* Authors:
* Ted Gould <ted@gould.cx>
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 2002-2004 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef SEEN_MODULES_DB_H
#define SEEN_MODULES_DB_H
#include <map>
#include <list>
#include <cstring>
#include <glib.h>
/** A string comparison function to be used in the moduledict
to find the different extensions in the hash map. */
struct ltstr {
return true;
return false;
} else {
}
}
};
/** This is the actual database. It has all of the modules in it,
indexed by their ids. It's a hash table for faster lookups */
/** Maintain an ordered list of modules for generating the extension
lists via "foreach" */
DB (void);
}; /* class DB */
} } /* namespace Extension, Inkscape */
#endif // SEEN_MODULES_DB_H
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :