Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

editor.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "editor.h"

Compounds

struct  rnamlEDITOR

Functions

rnamlEditorrnamlnewEditor ()
 Creates a new rnamlEditor structure.

rnamlEditorrnamlcloneEditor (const rnamlEditor *editor)
 Clones a rnamlEditor struture.

void rnamldeleteEditor (rnamlEditor *editor)
 Frees the rnamlEditor structure.

int rnamlisEditor (const rnamlObject *obj)
 Tells wheter the object is a rnamlEditor.

int rnamlequalsEditor (const rnamlEditor *left, const rnamlEditor *right)
 Tells if left and right are equals.

const char * rnamlgetEditorValue (const rnamlEditor *editor)
 Gets the value editor.

void rnamlsetEditorValue (rnamlEditor *editor, const char *value)
 Sets the editor value.

xmlcpgObjectrnamltoXMLEditor (const rnamlEditor *editor)
 Translates the rnamlEditor structure into a xmlcpgElement conforming to the RNAML standard.


Function Documentation

rnamlEditor* rnamlcloneEditor const rnamlEditor   editor
 

Clones a rnamlEditor struture.

Parameters:
editor  the structure to clone.
Returns:
the new allocated structure or NULL if something goes wrong.

void rnamldeleteEditor rnamlEditor   editor
 

Frees the rnamlEditor structure.

Parameters:
editor  the rnamlEditor structure to free.

int rnamlequalsEditor const rnamlEditor   left,
const rnamlEditor   right
 

Tells if left and right are equals.

Parameters:
left  the left object to compare.
right  the right object to compare.
Returns:
1 if the objects are equals or 0 otherwise.

const char* rnamlgetEditorValue const rnamlEditor   editor
 

Gets the value editor.

Parameters:
editor  the rnamlEditor structure.
Returns:
the editor value string or NULL if editor is NULL or not an rnamlEditor.

int rnamlisEditor const rnamlObject   obj
 

Tells wheter the object is a rnamlEditor.

Parameters:
obj  the rnamlObject to test.
Returns:
1 if the object is a rnamlEditor, 0 otherwise.

rnamlEditor* rnamlnewEditor  
 

Creates a new rnamlEditor structure.

Returns:
the new allocated structure or NULL if something goes wrong.

void rnamlsetEditorValue rnamlEditor   editor,
const char *    value
 

Sets the editor value.

The previous editor value is freed and a copy of value is generated.

Parameters:
editor  the rnamlEditor structure.
value  the editor value.

xmlcpgObject* rnamltoXMLEditor const rnamlEditor   editor
 

Translates the rnamlEditor structure into a xmlcpgElement conforming to the RNAML standard.

Parameters:
molecule  the rnamlEditor structure to translate.
Returns:
the xmlcpgObject or NULL if something goes wrong.


Generated on Tue Nov 11 14:59:46 2003 for xmlcpg by doxygen1.2.18