ModifyingRuleBaseControls

These modifications allow rule based controls to be modified with the
additional functions added in the dll toolkit
This commit is contained in:
AngelaMarchi
2016-09-23 13:07:06 +09:30
parent 8b4a03d349
commit 6f8be1be55
6 changed files with 664 additions and 46 deletions

View File

@@ -76,7 +76,7 @@ void saveauxdata(FILE *f) /
if (sect == _END) break;
switch(sect)
{
case _RULES:
//case _RULES:
case _COORDS: if (Coordflag == FALSE)
{
fprintf(f, "%s", line);
@@ -95,7 +95,7 @@ void saveauxdata(FILE *f) /
/* Write lines appearing in the section to file */
switch(sect)
{
case _RULES:
//case _RULES:
case _COORDS: if (Coordflag == FALSE)
{
fprintf(f, "%s", line);
@@ -120,6 +120,7 @@ int saveinpfile(char *fname)
*/
{
int i,j,n;
int errcode;
double d,kc,ke,km,ucf;
char s[MAXLINE+1], s1[MAXLINE+1], s2[MAXLINE+1];
Pdemand demand;
@@ -623,6 +624,15 @@ int saveinpfile(char *fname)
}
fprintf(f, "\n\n");
fprintf(f, "\n\n[RULES]");
for (i=1; i<=Nrules; i++)
{
fprintf(f, "\nRULE %s",Rule[i].label);
errcode = writeRuleinInp(f, i);
fprintf(f, "\n");
}
fprintf(f, "\n\n");
/* Write [COORDINATES] section */
if (Coordflag == TRUE)