Public Member Functions

InkXmlObject Class Reference

#include <InkXml.h>

Collaboration diagram for InkXmlObject:
Collaboration graph
[legend]

Public Member Functions

 InkXmlObject (const char *object_name, bool dup_attrs_allowed=true)
 ~InkXmlObject ()
void clear_tags ()
int add_tag (const char *tag, const char *value)
int add_attr (InkXmlAttr *attr)
char * tag_value (const char *tag_name)
void display (FILE *fd=stdout)
char * object_name () const
InkXmlAttrfirst () const
InkXmlAttrnext (InkXmlAttr *here) const
 LINK (InkXmlObject, link)

Detailed Description

Definition at line 80 of file InkXml.h.


Constructor & Destructor Documentation

InkXmlObject::InkXmlObject ( const char *  object_name,
bool  dup_attrs_allowed = true 
)

Definition at line 59 of file InkXml.cc.

References ats_strdup, and InkXmlObject().

Referenced by InkXmlObject().

InkXmlObject::~InkXmlObject (  ) 

Definition at line 65 of file InkXml.cc.

References ats_free(), and clear_tags().


Member Function Documentation

int InkXmlObject::add_attr ( InkXmlAttr attr  ) 

Definition at line 91 of file InkXml.cc.

References a, Debug, Queue< C, L >::enqueue(), first(), ink_assert, next(), and InkXmlAttr::tag().

Referenced by add_tag().

int InkXmlObject::add_tag ( const char *  tag,
const char *  value 
)

Definition at line 81 of file InkXml.cc.

References add_attr(), and ink_assert.

void InkXmlObject::clear_tags (  ) 

Definition at line 72 of file InkXml.cc.

References Queue< C, L >::dequeue().

Referenced by ~InkXmlObject().

void InkXmlObject::display ( FILE *  fd = stdout  ) 

Definition at line 121 of file InkXml.cc.

References a, first(), and next().

InkXmlAttr* InkXmlObject::first (  )  const [inline]

Definition at line 96 of file InkXml.h.

References DLL< C, L >::head.

Referenced by add_attr(), display(), and tag_value().

InkXmlObject::LINK ( InkXmlObject  ,
link   
)
InkXmlAttr* InkXmlObject::next ( InkXmlAttr here  )  const [inline]

Definition at line 100 of file InkXml.h.

Referenced by add_attr(), display(), InkXmlConfigFile::next(), and tag_value().

char* InkXmlObject::object_name (  )  const [inline]

Definition at line 92 of file InkXml.h.

Referenced by InkXmlConfigFile::parse().

char * InkXmlObject::tag_value ( const char *  tag_name  ) 

Definition at line 108 of file InkXml.cc.

References a, first(), ink_assert, and next().


The documentation for this class was generated from the following files: