Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Examples

String.hpp

00001 #if   !defined(__STRING_HPP)
00002 #define  __STRING_HPP
00003 
00004 /*
00005   CoreLinux++ 
00006   Copyright (C) 1999 CoreLinux Consortium
00007   
00008    The CoreLinux++ Library is free software; you can redistribute it and/or
00009    modify it under the terms of the GNU Library General Public License as
00010    published by the Free Software Foundation; either version 2 of the
00011    License, or (at your option) any later version.
00012 
00013    The CoreLinux++ Library Library is distributed in the hope that it will 
00014    be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016    Library General Public License for more details.
00017 
00018    You should have received a copy of the GNU Library General Public
00019    License along with the GNU C Library; see the file COPYING.LIB.  If not,
00020    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00021    Boston, MA 02111-1307, USA.  
00022 */   
00023 
00024 //
00025 // This is a temporary until String gets analyzed and designed with
00026 // the ability to factory create a string with certain properties 
00027 // (UTF-8 vs. UCS-2 vs UCS-4, etc)
00028 //
00029 
00030 #include <string>
00031 
00032 #if   !defined(__COMMON_HPP)
00033 #include <Common.hpp>
00034 #endif
00035 
00036 namespace corelinux
00037 {
00038    DEFINE_CLASS(String);
00039 
00040    class String : public AbstractString, public std::string
00041    {
00042    
00043    public:
00044    
00045                String( void )
00046                :
00047                   std::string()
00048                {
00049 
00050                }
00051                String( CharCptr aPtr )
00052                :
00053                   std::string((const Char *)aPtr)
00054                {
00055 
00056                }
00057 
00058       virtual  ~String( void )
00059       {
00060          ;  // do nothing
00061       }
00062 
00063    protected:
00064    
00065    private:
00066    
00067    };
00068 
00069 }
00070 
00071 #endif // #if !defined(__STRING_HPP)
00072 
00073 /*
00074    Common rcs information do not modify
00075    $Author: prudhomm $
00076    $Revision: 1.1 $
00077    $Date: 2000/04/23 20:43:13 $
00078    $Locker:  $
00079 */
00080 

This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium