osurs  0.0.1
Data Structures | Typedefs | Functions
import.c File Reference

Import a network file. More...

#include <libxml/parser.h>
#include <limits.h>
#include <stdio.h>
#include "osurs/io.h"
#include "utils.h"
Include dependency graph for import.c:

Data Structures

struct  carrier_t
 

Typedefs

typedef struct carrier_t Carrier
 

Functions

int import_network (Network *network, const char *filename)
 Import a network to xml. More...
 
int import_reservations (Network *network, const char *filename)
 Import reservations from xml. More...
 

Detailed Description

Import a network file.

Date
: 2022-10-01
Author
: Merlin Unterfinger

Function Documentation

◆ import_network()

int import_network ( Network network,
const char *  filename 
)

Import a network to xml.

Parameters
networkThe empty network to import the content to.
filenameThe file to import.
Returns
1 if success, 0 if failure.

◆ import_reservations()

int import_reservations ( Network network,
const char *  filename 
)

Import reservations from xml.

Parameters
networkThe network to import the reservations content to.
filenameThe file to import.
Returns
1 if success, 0 if failure.