#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include "error.h"
#include "fileio.h"
#include "model.h"
#include "stringtokenizer/StringTokenizer.h"

Defines | |
| #define | EOLN 10 |
| end-of-line define | |
Functions | |
| void | loadTemplates (const char *fname, class clsDesign *dptr) |
| loader of module-type templates | |
| void | loadNetlist (FILE *f, const char *fname, class clsDesign *dptr) |
| netlist loader | |
Variables | |
| unsigned long | line |
| line counter | |
| char | act_fname [MAX_STR_LEN] |
| actual file name size limit | |
| bool | debug_mode |
| debug/normal mode switch. In debug mode, implementation and low-level model related data are sent to std. Undocumented at present. | |
| unsigned long | nerrors |
| number of errors counter | |
| clsDesign * | dsgnPtr |
| pointer to the top clsDesign object | |
| #define EOLN 10 |
end-of-line define
| void loadNetlist | ( | FILE * | f, | |
| const char * | fname, | |||
| class clsDesign * | dptr | |||
| ) |
netlist loader
on basis of information stored in fname file, corresponding clsDesign object is created and its pointer returned by reference.
| [in] | f | handler of file to be read from |
| [in] | fname | name of file to be read from |
| [out] | dptr | pointer to clsDesign object created according to data stored in the file |
| void loadTemplates | ( | const char * | fname, | |
| class clsDesign * | dptr | |||
| ) |
loader of module-type templates
on basis of information stored in fname file, information about module-type templates is stored into clsDesign object. Each module within a design is assigned a type.
| [in] | fname | name of file to be read from |
| [out] | dptr | pointer to clsDesign object created according to data stored in the file |

| char act_fname[MAX_STR_LEN] |
actual file name size limit
| bool debug_mode |
debug/normal mode switch. In debug mode, implementation and low-level model related data are sent to std. Undocumented at present.
| unsigned long line |
line counter
| unsigned long nerrors |
number of errors counter
1.5.6