Polaris: StringElem.h Source File

StringElem.h

Go to the documentation of this file.
00001 ///
00002 /// file StringElem.h
00003 ///
00004 #ifndef STRING_ELEM_H
00005 #define STRING_ELEM_H
00006 ///
00007 #ifdef POLARIS_GNU_PRAGMAS
00008 #pragma interface
00009 #endif
00010 ///
00011 #include "ClassNames.h"
00012 #include "Listable.h"
00013 #include "String.h"
00014 ///
00015 class StringElem : public Listable, public String {
00016 private:
00017 public:
00018   StringElem();
00019   StringElem(const char *str);
00020   StringElem(const String &other);
00021   StringElem(const StringElem &other);
00022   virtual ~StringElem();
00023 
00024   virtual StringElem *clone() const;
00025 
00026   virtual void print(ostream &o) const;
00027   virtual Listable *listable_clone() const;
00028   virtual int structures_OK() const;
00029   ///< Check the structure of the data for errors or inconsistency
00030   ///< Return 0 and print error message if problems found, otherwise
00031   ///< return 1 without message.
00032 };
00033 
00034 inline
00035 ostream & operator << (ostream & o, const StringElem &se) {
00036   se.print(o);
00037   return o;
00038 }
00039 
00040 #endif
 © 1995-2005 University of Illinois, Urbana-Champaign. All rights reserved.  Fri Mar 25 23:06:13 2005