simplestringlist.h
Go to the documentation of this file.
1 //======================================================================
28 //======================================================================
29 
30 #ifndef SIMPLESTRINGLIST_H_
31 #define SIMPLESTRINGLIST_H_
32 
33 //----------------------------------------------------------------------
34 // System Includes - include with <>
35 //----------------------------------------------------------------------
36 
37 #include <iosfwd>
38 
39 //----------------------------------------------------------------------
40 // Project Includes - include with ""
41 //----------------------------------------------------------------------
42 
43 #include "dbg.h"
44 #include "sdhlibrary_settings.h"
45 
46 //----------------------------------------------------------------------
47 // Defines, enums, unions, structs,
48 //----------------------------------------------------------------------
49 
51 
52 
53 //----------------------------------------------------------------------
54 // Global variables
55 //----------------------------------------------------------------------
56 
57 
58 //----------------------------------------------------------------------
59 // Function declarations
60 //----------------------------------------------------------------------
61 
62 
63 //----------------------------------------------------------------------
64 // Class declarations
65 //----------------------------------------------------------------------
66 
67 
68 
70 class VCC_EXPORT cSimpleStringList
71 {
72 public:
73 
76 
77 
79  enum {
80  eMAX_LINES = 256,
81  eMAX_CHARS = 256,
82  };
83 
86 
87 
89  char* CurrentLine();
90 
91 
93  char* NextLine();
94 
95 
97  int Length() const;
98 
99 
101 
105  char* operator[]( int index );
106 
108 
112  char const* operator[]( int index ) const;
113 
114 
116  void Reset();
117 
118 protected:
120  char line[ eMAX_LINES ][ eMAX_CHARS ];
121 
122 }; // cSimpleStringList
123 //-----------------------------------------------------------------
124 
125 
127 VCC_EXPORT std::ostream& operator<<( std::ostream& stream, cSimpleStringList const& ssl );
128 
129 
130 //-----------------------------------------------------------------
131 
133 
134 #endif
135 
136 
137 //======================================================================
138 /*
139  Here are some settings for the emacs/xemacs editor (and can be safely ignored):
140  (e.g. to explicitely set C++ mode for *.h header files)
141 
142  Local Variables:
143  mode:C++
144  mode:ELSE
145  End:
146 */
147 //======================================================================
148 
VCC_EXPORT std::ostream & operator<<(std::ostream &stream, cSimpleStringList const &ssl)
Output of cSimpleStringList objects in &#39;normal&#39; output streams.
This file contains interface and implementation of class #SDH::cDBG, a class for colorfull debug mess...
#define NAMESPACE_SDH_START
int current_line
the index of the current line. For empty cSimpleStringLists this is -1.
A simple string list. (Fixed maximum number of strings of fixed maximum length)
#define NAMESPACE_SDH_END
This file contains settings to make the SDHLibrary compile on differen systems:


sdhlibrary_cpp
Author(s): Dirk Osswald
autogenerated on Mon Feb 28 2022 23:41:51