osurs  0.0.1
Macros | Functions
export.c File Reference

Export network to a file. More...

#include <libxml/encoding.h>
#include <libxml/xmlwriter.h>
#include "osurs/io.h"
#include "utils.h"
Include dependency graph for export.c:

Macros

#define ENCODING   "UTF-8"
 

Functions

int export_network (Network *network, const char *filename)
 Export a network to xml. More...
 
int export_reservations (Network *network, const char *filename)
 Export reservations of a network to xml. More...
 

Detailed Description

Export network to a file.

Date
: 2022-07-25
Author
: Merlin Unterfinger

Function Documentation

◆ export_network()

int export_network ( Network network,
const char *  filename 
)

Export a network to xml.

Parameters
networkThe network to export.
filenameThe file to create.
Returns
1 if success, 0 if failure.

◆ export_reservations()

int export_reservations ( Network network,
const char *  filename 
)

Export reservations of a network to xml.

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