3D-ICE 3.0.0
Functions
floorplan_file_parser.h File Reference
#include "types.h"
#include "string_t.h"
#include "floorplan.h"
#include "dimensions.h"

Go to the source code of this file.

Functions

Error_t parse_floorplan_file (String_t filename, Floorplan_t *floorplan, Dimensions_t *dimensions)
 
Error_t generate_floorplan_file (String_t filename, Floorplan_t *floorplan)
 

Function Documentation

◆ generate_floorplan_file()

Error_t generate_floorplan_file ( String_t  filename,
Floorplan_t floorplan 
)

Generates a floorplan file

Parameters
filenamethe path of the stack file to generate
floorplanthe floorplan to print
Returns
TDICE_FAILURE if the file cannot be created
TDICE_SUCCESS otherwise

Definition at line 99 of file floorplan_file_parser.c.

◆ parse_floorplan_file()

Error_t parse_floorplan_file ( String_t  filename,
Floorplan_t floorplan,
Dimensions_t dimensions 
)

Fills the Floorplan structure with the content taken from a floorplan file

Parameters
filenamepath to the floorplan file to parse
floorplanaddress of the Floorplan structure to fill
dimensionspointer to the structure storing the dimensions of the stack where the floorplan is used
Returns
TDICE_FAILURE if the file cannot be opened or if the parsing of the floorplan fails
TDICE_FAILURE otherwise

Definition at line 57 of file floorplan_file_parser.c.