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

identifier.hh

00001 /*
00002 *  Name:      identifier.hh
00003 *  Author:    Rafael Jesus Alcantara Perez
00004 *  Summary:   UESQLC base SQL type identifier
00005 *  Date:      $Date: 2003/10/06 13:21:35 $
00006 *  Revision:  $Revision: 1.1 $
00007 *
00008 *  Copyright (C) 2002-2003  Rafael Jesus Alcantara Perez <rafa@dedalo-ing.com>
00009 *
00010 *  This program is free software; you can redistribute it and/or modify
00011 *  it under the terms of the GNU General Public License as published by
00012 *  the Free Software Foundation; either version 2 of the License, or
00013 *  (at your option) any later version.
00014 *
00015 *  This program is distributed in the hope that it will be useful,
00016 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 *  GNU General Public License for more details.
00019 *
00020 *  You should have received a copy of the GNU General Public License
00021 *  along with this program; if not, write to the Free Software
00022 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00023 *  MA 02111-1307, USA.
00024 */
00025 
00026 #ifndef _UESQL_IDENTIFIER__
00027 #define _UESQL_IDENTIFIER__
00028 
00029 #include "string.hh"
00030 
00031 
00033 namespace uesqlc
00034 {
00035 
00037   class TIdentifier : public TString
00038   {
00039 
00040     public:
00041       
00042       //
00043       //  C O N S T R U C T O R S
00044       //
00045       
00046       explicit TIdentifier (void) : TString() {}
00047 
00049       TIdentifier (const TIdentifier& rkyIDENTIFIER) :
00050         TString (rkyIDENTIFIER)                      {}
00051 
00052       TIdentifier ( const TIdentifier& rkyIDENTIFIER  ,
00053                     size_type          zOFFSET        ,
00054                     size_type          zLENGTH = npos ) :
00055         TString (rkyIDENTIFIER, zOFFSET, zLENGTH)       {}
00056 
00057       explicit TIdentifier (const mpcl::text::TString& rkySOURCE) : TString (rkySOURCE) {}
00058 
00064       TIdentifier (const char* pkcVALUE, size_type zLENGTH) :
00065         TString (pkcVALUE, zLENGTH)                         {}
00066       
00072       explicit TIdentifier (const char* pkcVALUE) : TString (pkcVALUE) {}
00073 
00074       TIdentifier (size_type zTIMES, char cSOURCE) :
00075         TString (zTIMES, cSOURCE)                  {}
00076       
00077       template<typename InputIterator>
00078       TIdentifier (InputIterator tBEGIN_ITER, InputIterator tEND_ITER) :
00079         TString (tBEGIN_ITER, tEND_ITER)                               {}
00080 
00082       using TString::operator =;
00083 
00084 
00085     public:
00086 
00087       //
00088       //  S E L E C T O R S
00089       //
00090 
00095       mpcl::text::TString get (void) const
00096       {
00097         return ( isNull() ) ? mpcl::text::TString ("null") : (mpcl::text::TString) *this;
00098       }
00099 
00100   };  // class TIdentifier
00101 
00102 }  // namespace uesqlc
00103 
00104 
00105 #endif  // not _UESQL_IDENTIFIER__

Generated on Mon Oct 13 02:40:10 2003 for UESQLC by doxygen1.2.18