#include <fcntl.h>
#include <iostream>
#include <fstream>
#include <io.h>
#include <swmgr.h>
#include <swmodule.h>
#include <stdio.h>
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 51 of file modwrite.cpp.
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)