gk::TextValue Class Reference

representation d'une valeur (non interpretee, texte) associee a une cle, cf. TextKey et TextFile. More...

#include <TextFile.h>

List of all members.

Public Member Functions

 TextValue ()
 utilisation interne. constructeur.
 TextValue (const std::string &string)
 utilisation interne. constructeur.
TextValue & operator= (const TextValue &b)
 utilisation interne. constructeur.
bool operator== (const TextValue &b) const
 comparaison.
bool operator!= (const TextValue &b) const
 comparaison.
 ~TextValue ()
 destructeur.
Vec4Value asVec4 () const
 interprete la valeur texte comme un vec4. syntaxe: vec4( x, y, z, w ).
Vec3Value asVec3 () const
 interprete la valeur texte comme un vec3. syntaxe: vec3( x, y, z ).
Vec2Value asVec2 () const
 interprete la valeur texte comme un vec2. syntaxe: vec2( x, y ).
FloatValue asFloat () const
 interprete la valeur texte comme un float. syntaxe: float( v ).
IntValue asInt () const
 interprete la valeur texte comme un int. syntaxe: int( v ).
StringValue asString () const
 renvoie la chaine de caracteres sans interpretation.
FileValue asFile () const
 interprete la valeur texte comme un nom de fichier. syntaxe: "nom/de/fichier".
NameValue asName () const
 renvoie un nom (de section, par exemple). syntaxe: identifiant_sans_espace.
TextValue & operator= (const Vec4Value &value)
 affecte une nouvelle valeur.
TextValue & operator= (const Vec3Value &value)
TextValue & operator= (const Vec2Value &value)
TextValue & operator= (const FloatValue &value)
TextValue & operator= (const IntValue &value)
TextValue & operator= (const StringValue &value)
TextValue & operator= (const FileValue &value)
TextValue & operator= (const NameValue &value)
const char * c_str () const
 utilisation interne. renvoie la chaine de caracteres representant la valeur.

Static Public Member Functions

static TextValue & notFound ()
 renvoie une valeur non definie, permet de verifier le resultat d'une recherche de cle.

Detailed Description

representation d'une valeur (non interpretee, texte) associee a une cle, cf. TextKey et TextFile.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Friends
Generated on Thu Sep 22 16:34:00 2011 for gKitGL by  doxygen 1.6.3