Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

xmli::Attribute Class Reference

Encapulate the name/value pairs which appear inside XML tags. More...

#include <Attribute.h>

List of all members.

Public Member Functions

 Attribute (const char *name, const char *value)
 Attribute (const std::string &name, const std::string &value)
 Attribute (const XMLCh *name, const XMLCh *value)
const std::string & Name () const
const std::string & Value () const

Private Attributes

std::string fName
 Name of attribute.

std::string fValue
 Value of attribute.


Detailed Description

Encapulate the name/value pairs which appear inside XML tags.

Definition at line 16 of file Attribute.h.


Constructor & Destructor Documentation

xmli::Attribute::Attribute const char *  name,
const char *  value
 

Definition at line 8 of file Attribute.cxx.

00008                                                             :
00009   fName(name), 
00010   fValue(value)
00011 { }

xmli::Attribute::Attribute const std::string &  name,
const std::string &  value
 

Definition at line 15 of file Attribute.cxx.

00016                                                    :
00017   fName(name),
00018   fValue(value)
00019 { }

xmli::Attribute::Attribute const XMLCh *  name,
const XMLCh *  value
 

Definition at line 23 of file Attribute.cxx.

References fName, and fValue.

00024 {
00025   char* n = XMLString::transcode(name);
00026   char* v = XMLString::transcode(value);
00027   fName  = n;
00028   fValue = v;
00029   XMLString::release(&n);
00030   XMLString::release(&v);
00031 }


Member Function Documentation

const std::string& xmli::Attribute::Name  )  const [inline]
 

Definition at line 22 of file Attribute.h.

References fName.

00022 { return fName;  }

const std::string& xmli::Attribute::Value  )  const [inline]
 

Definition at line 23 of file Attribute.h.

References fValue.

00023 { return fValue; }


Member Data Documentation

std::string xmli::Attribute::fName [private]
 

Name of attribute.

Definition at line 25 of file Attribute.h.

Referenced by Attribute(), and Name().

std::string xmli::Attribute::fValue [private]
 

Value of attribute.

Definition at line 26 of file Attribute.h.

Referenced by Attribute(), and Value().


The documentation for this class was generated from the following files:
Generated on Thu Jul 24 12:01:21 2008 for NOvA Offline by doxygen 1.3.5