Kigs Framework  Doc version 0.8
Open source multi purpose Rapid Application Development framework
Public Member Functions | List of all members
XMLAttributeTemplate< StringType > Class Template Reference

#include <XMLAttribute.h>

Inherits XMLAttributeBase.

Public Member Functions

 XMLAttributeTemplate (const StringType &name, const StringType &value)
 constructor for string attributes
 XMLAttributeTemplate (const char *name, const char *value)
 constructor for string attributes
 XMLAttributeTemplate (const char *name, unsigned int namelen, const char *value, unsigned int valuelen)
 constructor for string attributes
 XMLAttributeTemplate (const StringType &name, int value)
 constructor for int attributes
 XMLAttributeTemplate (const StringType &name, kfloat value)
 constructor for kfloat attributes
 ~XMLAttributeTemplate ()
 destructor ( no need for virtual as XMLAttributeTemplate will not have inheritance )
void setString (const StringType &value)
 set attribute value with the given string parameter
void setInt (const int value)
 set attribute value with the given int parameter
void setFloat (const kfloat value)
 set attribute value with the given kfloat parameter
const StringType & getName ()
 return attribute name
const StringType & getString ()
 return value as a string
int getInt ()
 return value as an int
kfloat getFloat ()
 return value as a kfloat

Detailed Description

template<typename StringType>
class XMLAttributeTemplate< StringType >

Manage XML attributes structure using string or string_view.

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