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

dsAttr.h

Go to the documentation of this file.
00001 /*
00002  * $Id: dsAttr.h,v 1.2 2003/08/04 10:33:43 dsamersoff Exp $
00003  */
00004 #ifndef dsAttr_h
00005 #define dsAttr_h
00006 
00007 #include <dsNode.h>
00008 #include <dsElement.h>
00009 
00010 class dsElement;
00011 
00012 class dsAttr : public dsNode 
00013 {
00014 public:
00015     bool           specified()    { return true; };
00016     DOMString      name()         { return nodeName(); }
00017     DOMString      value()        { return nodeValue(); }
00018     dsElement*     ownerElement() { return (dsElement *) parentNode(); }
00019 
00020     void           setValue( DOMString newvalue);
00021     void           setValue( long newvalue);
00022 
00023 protected:
00024    /* Internals */
00025     dsAttr(dsElement *owner, DOMString name);
00026     dsAttr(dsDocument *owner, DOMString name);
00027     dsAttr(dsDocument *owner);
00028     
00029 
00030     ~dsAttr();
00031     
00032     friend class dsDocument;
00033     friend class dsXMLParser;
00034 };
00035 
00036 
00037 
00038 #endif 

Generated on Mon May 16 18:26:57 2005 for libdms4 by doxygen1.3-rc2