The Gnome Chemistry Utils  0.14.0
Namespaces | Functions
xml-utils.h File Reference
#include <libxml/parser.h>
#include "chemistry.h"
#include <goffice/goffice.h>

Go to the source code of this file.

Namespaces

namespace  gcu
 The Gnome Chemistry Utils C++ classes.

Functions

xmlNodePtr gcu::FindNodeByNameAndId (xmlNodePtr node, const char *name, const char *id=NULL)
bool gcu::ReadPosition (xmlNodePtr node, const char *id, double *x, double *y, double *z=NULL)
bool gcu::WritePosition (xmlDocPtr xml, xmlNodePtr node, const char *id, double x, double y, double z=0.0)
bool gcu::ReadColor (xmlNodePtr node, const char *id, float *red, float *green, float *blue, float *alpha=NULL)
bool gcu::WriteColor (xmlDocPtr xml, xmlNodePtr node, const char *id, double red, double green, double blue, double alpha=1.0)
GOColor gcu::ReadColor (xmlNodePtr node)
void gcu::WriteColor (xmlNodePtr node, GOColor color)
bool gcu::ReadRadius (xmlNodePtr node, GcuAtomicRadius &radius)
bool gcu::WriteRadius (xmlDocPtr xml, xmlNodePtr node, const GcuAtomicRadius &radius)
char const * gcu::GetStaticScale (char *buf)
void gcu::WriteFloat (xmlNodePtr node, char const *name, double value)
bool gcu::ReadFloat (xmlNodePtr node, char const *name, double &value, double default_value=0.)
void gcu::WriteInt (xmlNodePtr node, char const *name, int value)
bool gcu::ReadInt (xmlNodePtr node, char const *name, int &value, int default_value=0)
void gcu::WriteDate (xmlNodePtr node, char const *name, GDate const *date)
bool gcu::ReadDate (xmlNodePtr node, char const *name, GDate *date)

Detailed Description

Some helper functions to load / save Object instances.

Definition in file xml-utils.h.