COPASI API  4.16.103
CLocaleString.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/commandline/CLocaleString.h,v $
3 // $Revision: 1.2 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/03/07 19:26:18 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 #include <string>
15 
16 #ifndef COPASI_CLocaleString
17 #define COPASI_CLocaleString
18 
20 {
21 public:
22 #ifdef WIN32
23  typedef wchar_t lchar;
24 #else
25  typedef char lchar;
26 #endif
27 
28  static CLocaleString fromUtf8(const std::string & utf8);
29 
30  // Operations
31  CLocaleString();
32 
33  CLocaleString(const lchar * str);
34 
35  CLocaleString(const CLocaleString & src);
36 
38 
40 
41  CLocaleString & operator = (const lchar * str);
42 
43  std::string toUtf8() const;
44 
45  const lchar * c_str() const;
46 
47 private:
48  // Attributes
50 };
51 
52 #endif // COPASI_CLocaleString
CLocaleString & operator=(const CLocaleString &rhs)
const lchar * c_str() const
std::string toUtf8() const
static CLocaleString fromUtf8(const std::string &utf8)