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

SFString.h

Go to the documentation of this file.
00001 
00002 
00003 
00005 
00006 
00011 
00016 
00021 //                            SFString.h                                      //
00023 
00024 #ifndef SFSTRING_H
00025 #define SFSTRING_H
00026 
00027 #include <string>
00028 
00029 namespace X3DTK {
00030 
00033 
00034 class SFString : public std::string
00035 {
00036 public:
00038   SFString();
00040   SFString(const char *s);
00042   SFString(const std::string &s);
00044   SFString(const SFString &s);
00045   
00047   operator const char *() const;
00049   int toInt() const;
00051   unsigned int toUint() const;
00053   float toFloat() const;
00055   double toDouble() const;
00057   SFString lower() const;
00059   SFString upper() const;
00061   SFString getName() const;
00063   SFString getExtension() const;
00065   SFString getFile() const;
00067   SFString getPath() const;
00068   
00070   static SFString number(float f);
00072   static SFString number(double d);
00074   static SFString number(int i); 
00076   static SFString number(unsigned int ui); 
00077 };
00078 
00079 }
00080 
00081 #endif

Generated on Wed Sep 10 11:25:14 2003 for X3DToolKit by doxygen1.3