Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

strkey.cpp

00001 /******************************************************************************
00002  *  StrKey.cpp - code for class 'StrKey'- a standard string key class (used
00003  *                              for modules that index on single strings (eg. cities,
00004  *                              names, words, etc.)
00005  */
00006 
00007 #include <swmacs.h>
00008 #include <utilfuns.h>
00009 #include <strkey.h>
00010 #include <string.h>
00011 #include <stdio.h>
00012 
00013 
00014 static const char *classes[] = {"StrKey", "SWKey", "SWObject", 0};
00015 SWClass StrKey::classdef(classes);
00016 
00017 /******************************************************************************
00018  * StrKey Constructor - initializes instance of StrKey
00019  *
00020  * ENT: ikey - text key (word, city, name, etc.)
00021  */
00022 
00023 StrKey::StrKey(const char *ikey) : SWKey(ikey)
00024 {
00025         init();
00026 }
00027 
00028 
00029 void StrKey::init() {
00030         myclass = &classdef;
00031 }
00032 
00033 
00034 /******************************************************************************
00035  * StrKey Destructor - cleans up instance of StrKey
00036  *
00037  * ENT: ikey - text key
00038  */
00039 
00040 StrKey::~StrKey() {
00041 }

Generated on Thu Jun 20 22:13:00 2002 for The Sword Project by doxygen1.2.15