24 #pragma warning( disable: 4251 )
42 #ifndef NO_SWORD_NAMESPACE
44 using sword::SWModule;
51 int main(
int argc,
char **argv)
55 if ((argc < 4) || (argc > 6)) {
56 cerr <<
"usage: " << argv[0] <<
" <mod_name> <key> <key|buf|""-delete> [0(deflt) - normal; 1 - link]\n";
61 action = atoi(argv[4]);
65 ModMap::iterator it = mgr.
Modules.find(argv[1]);
67 fprintf(stderr,
"error: %s: couldn't find module: %s \n", argv[0], argv[1]);
81 (*module) << (
SWKey)argv[3];
84 cerr <<
"Unknown action " << action <<
"\n";
virtual void deleteEntry()
virtual char setKey(const SWKey *ikey)
std::map< SWBuf, SWModule *, std::less< SWBuf > > ModMap