/* * MathPlanner 3.1 - Mathematical design tool. * Copyright(C) 2002 Jarmo Nikkanen * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation. * * You should have received a copy of the GNU General Public License with this program. * */ #include #include #include #include #include "ConfigReader.h" #include "Error.h" #include "Datastore.h" #include "Extern.h" DataStorage *config_file_reader::Build() { int i,x=0; char n[8],s[8]; DataStorage *ds=new DataStorage(); for (i=0;iAddString(n,data[i].name); ds->AddString(s,data[i].string); } return(ds); } void config_file_reader::Record(DataStorage *ds) { int i,x; char n[8],s[8]; char *name,*str; for (i=0;i<256;i++) { sprintf(n,"A%d",i); sprintf(s,"B%d",i); if (ds->Contains(n)) { ds->ReadData(n,(void **)&name); ds->ReadData(s,(void **)&str); for (x=0;x Entries"); Bug((long int)count); if (count>0 && count<256) { index=0; for(i=0;i