DRDE/APIG/include/eppxml.h

71 lines
1.7 KiB
C

bool mdCommander::loadSchema(int which) {
}
void mdCommander::writeCommand(char which) {
char fullPath[128];
const char*cmdName;
int ithCmd;
switch (which) {
case 'c': cmdName = cmdNames[ithCmd=0]; break;
case 'i': cmdName = cmdNames[ithCmd=1]; break;
case 'p': cmdName = cmdNames[ithCmd=2]; break;
case 't': cmdName = cmdNames[ithCmd=3]; break;
case 'C': cmdName = cmdNames[ithCmd=4]; break;
case 'R': cmdName = cmdNames[ithCmd=5]; break;
case 'U': cmdName = cmdNames[ithCmd=6]; break;
case 'D': cmdName = cmdNames[ithCmd=7]; break;
case 'T': cmdName = cmdNames[ithCmd=8]; break;
default: beep(); return;
break;
}
if (!xmlIO[ithCmd].schema)
{say("No schema loaded."); beep(); return;}
}
void mdCommander::viBlankForm(char which) {
char fullPath[128];
const char*cmdName;
switch (which) {
case 'c': cmdName = cmdNames[0]; break;
case 'i': cmdName = cmdNames[1]; break;
case 'p': cmdName = cmdNames[2]; break;
case 't': cmdName = cmdNames[3]; break;
case 'C': cmdName = cmdNames[4]; break;
case 'R': cmdName = cmdNames[5]; break;
case 'U': cmdName = cmdNames[6]; break;
case 'D': cmdName = cmdNames[7]; break;
case 'T': cmdName = cmdNames[8]; break;
default: beep(); return;
break;
}
strcpy(fullPath,"./xml/");
strcat(fullPath,cmdName);
strcat(fullPath,".xml");
sprintf(wwork,"vim %s",fullPath);
system(wwork);
help();
}
void mdCommander::viSchema(int which) {
char fullPath[128];
if (which < 1 || which > 6) {
beep(); return;
}
strcpy(fullPath,"./resources/");
strcat(fullPath,schemaFileNames[which]);
sprintf(wwork,"vim %s",fullPath);
system(wwork);
help();
}