simplestringlist.h
Go to the documentation of this file.
00001 //======================================================================
00028 //======================================================================
00029 
00030 #ifndef SIMPLESTRINGLIST_H_
00031 #define SIMPLESTRINGLIST_H_
00032 
00033 //----------------------------------------------------------------------
00034 // System Includes - include with <>
00035 //----------------------------------------------------------------------
00036 
00037 #include <iosfwd>
00038 
00039 //----------------------------------------------------------------------
00040 // Project Includes - include with ""
00041 //----------------------------------------------------------------------
00042 
00043 #include "dbg.h"
00044 #include "sdhlibrary_settings.h"
00045 
00046 //----------------------------------------------------------------------
00047 // Defines, enums, unions, structs,
00048 //----------------------------------------------------------------------
00049 
00050 NAMESPACE_SDH_START
00051 
00052 
00053 //----------------------------------------------------------------------
00054 // Global variables
00055 //----------------------------------------------------------------------
00056 
00057 
00058 //----------------------------------------------------------------------
00059 // Function declarations
00060 //----------------------------------------------------------------------
00061 
00062 
00063 //----------------------------------------------------------------------
00064 // Class declarations
00065 //----------------------------------------------------------------------
00066 
00067 
00068 
00070 class VCC_EXPORT cSimpleStringList
00071 {
00072 public:
00073 
00075     int current_line;
00076 
00077 
00079     enum {
00080         eMAX_LINES = 256,
00081         eMAX_CHARS = 256,
00082     };
00083 
00085     cSimpleStringList();
00086 
00087 
00089     char* CurrentLine();
00090 
00091 
00093     char* NextLine();
00094 
00095 
00097     int Length() const;
00098 
00099 
00101 
00105     char* operator[]( int index );
00106 
00108 
00112     char const* operator[]( int index ) const;
00113 
00114 
00116     void Reset();
00117 
00118 protected:
00120     char line[ eMAX_LINES ][ eMAX_CHARS ];
00121 
00122 }; // cSimpleStringList
00123 //-----------------------------------------------------------------
00124 
00125 
00127 VCC_EXPORT std::ostream& operator<<( std::ostream& stream, cSimpleStringList const& ssl );
00128 
00129 
00130 //-----------------------------------------------------------------
00131 
00132 NAMESPACE_SDH_END
00133 
00134 #endif
00135 
00136 
00137 //======================================================================
00138 /*
00139   Here are some settings for the emacs/xemacs editor (and can be safely ignored):
00140   (e.g. to explicitely set C++ mode for *.h header files)
00141 
00142   Local Variables:
00143   mode:C++
00144   mode:ELSE
00145   End:
00146 */
00147 //======================================================================
00148 


schunk_sdh
Author(s): Mathias Luedtke , Florian Weisshardt
autogenerated on Thu Aug 27 2015 15:07:03