fileio.cc File Reference

io-functions module More...

#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"

Include dependency graph for fileio.cc:


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
clsDesigndsgnPtr
 pointer to the top clsDesign object

Detailed Description

io-functions module


Define Documentation

#define EOLN   10

end-of-line define


Function Documentation

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.

Parameters:
[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.

Parameters:
[in] fname name of file to be read from
[out] dptr pointer to clsDesign object created according to data stored in the file

Here is the call graph for this function:


Variable Documentation

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.

pointer to the top clsDesign object

unsigned long line

line counter

unsigned long nerrors

number of errors counter


Generated on Mon Aug 25 08:39:24 2008 for TASTE by  doxygen 1.5.6