atomes 1.3.2
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
read_sml.c File Reference
#include "global.h"
#include "callbacks.h"
#include "interface.h"
#include "project.h"
#include "bind.h"
#include "readers.h"
#include <libxml/encoding.h>
#include <libxml/xmlwriter.h>
#include <libxml/xmlreader.h>
#include <libxml/parser.h>
Include dependency graph for read_sml.c:

Go to the source code of this file.

Functions

int clean_xml_data (xmlDoc *doc, xmlTextReaderPtr reader)
 free XML data
xmlNodePtr findnode (xmlNodePtr startnode, char *nname)
 find XML node
double get_z_from_periodic_table (gchar *lab)
 get Z from atom label
int save_sml_chemistry (xmlTextWriterPtr writer, project *this_proj)
 write content of SML file
int save_sml_coordinates (xmlTextWriterPtr writer, project *this_proj)
 write content of SML file
int sml_writer (project *this_proj)
 write content of SML file
int write_sml (project *this_proj)
 write SML file
int open_sml_file_out_of_library ()
 read 'Simple chemical library XML' file outside of atomes library

Function Documentation

◆ clean_xml_data()

int clean_xml_data ( xmlDoc * doc,
xmlTextReaderPtr reader )
extern

free XML data

Parameters
docthe XML doc pointer to free
readerthe XML reader to free

Definition at line 326 of file w_library.c.

◆ findnode()

xmlNodePtr findnode ( xmlNodePtr startnode,
char * nname )
extern

find XML node

Parameters
startnodeStarting node
nnameNode name to find

Definition at line 539 of file read_isaacs.c.

◆ get_z_from_periodic_table()

double get_z_from_periodic_table ( gchar * lab)
extern

get Z from atom label

Parameters
labthe atomic label

Definition at line 308 of file w_library.c.

◆ open_sml_file_out_of_library()

int open_sml_file_out_of_library ( )

read 'Simple chemical library XML' file outside of atomes library

Definition at line 262 of file read_sml.c.

◆ save_sml_chemistry()

int save_sml_chemistry ( xmlTextWriterPtr writer,
project * this_proj )

write content of SML file

Parameters
writerthe target XML writer
this_projthe target project

Definition at line 66 of file read_sml.c.

◆ save_sml_coordinates()

int save_sml_coordinates ( xmlTextWriterPtr writer,
project * this_proj )

write content of SML file

Parameters
writerthe target XML writer
this_projthe target project

Definition at line 116 of file read_sml.c.

◆ sml_writer()

int sml_writer ( project * this_proj)

write content of SML file

Parameters
this_projthe target project

Definition at line 165 of file read_sml.c.

◆ write_sml()

int write_sml ( project * this_proj)

write SML file

Parameters
this_projthe target project

Definition at line 241 of file read_sml.c.