Fast Research Interface Library  Manual and Documentation
include/InitializationFileEntry.h
Go to the documentation of this file.
00001 //  ---------------------- Doxygen info ----------------------
00050 //  ----------------------------------------------------------
00051 //   For a convenient reading of this file's source code,
00052 //   please use a tab width of four characters.
00053 //  ----------------------------------------------------------
00054 
00055 
00056 #ifndef __InitializationFileEntry__
00057 #define __InitializationFileEntry__
00058 
00059 
00060 #include <stdlib.h>
00061 
00062 
00063 //  ---------------------- Doxygen info ----------------------
00069 //  ----------------------------------------------------------
00070 #define VALUELEN    ((unsigned int)512)
00071 
00072 
00073 //  ---------------------- Doxygen info ----------------------
00079 //  ----------------------------------------------------------
00080 #define NAMELEN     ((unsigned int)512)
00081 
00082 
00083 //  ---------------------- Doxygen info ----------------------
00094 //  ----------------------------------------------------------
00095 class InitializationFileEntry
00096 {
00097 public:
00098 
00099 //  ---------------------- Doxygen info ----------------------
00117 //  ----------------------------------------------------------
00118     InitializationFileEntry(const char *FileName = NULL);
00119 
00120 
00121 //  ---------------------- Doxygen info ----------------------
00132 //  ----------------------------------------------------------
00133     ~InitializationFileEntry(void);
00134 
00135 
00136 //  ---------------------- Doxygen info ----------------------
00144 //  ----------------------------------------------------------
00145     char *GetAll(void);
00146 
00147 
00148 //  ---------------------- Doxygen info ----------------------
00165 //  ----------------------------------------------------------
00166     bool FindEntry(const char *Name);
00167 
00168 
00169 //  ---------------------- Doxygen info ----------------------
00178 //  ----------------------------------------------------------
00179     char *GetValue(void);
00180 
00181 
00182 //  ---------------------- Doxygen info ----------------------
00194 //  ----------------------------------------------------------
00195     char *GetName (void);
00196 
00197 
00198 //  ---------------------- Doxygen info ----------------------
00207 //  ----------------------------------------------------------
00208     char *GetSection(void);
00209 
00210 
00211 //  ---------------------- Doxygen info ----------------------
00220 //  ----------------------------------------------------------
00221     bool NextEntry(void);
00222 
00223 
00224 protected:
00225 
00226 
00227 //  ---------------------- Doxygen info ----------------------
00236 //  ----------------------------------------------------------
00237     bool FindNextSection(void);
00238 
00239 
00240 //  ---------------------- Doxygen info ----------------------
00257 //  ----------------------------------------------------------
00258     bool Add(const char* Line);
00259 
00260 
00261 //  ---------------------- Doxygen info ----------------------
00273 //  ----------------------------------------------------------
00274     void ReadFile(const char *FileName);
00275 
00276 
00277 //  ---------------------- Doxygen info ----------------------
00282 //  ----------------------------------------------------------
00283     InitializationFileEntry     *CurrentEntry;
00284 
00285 
00286 //  ---------------------- Doxygen info ----------------------
00291 //  ----------------------------------------------------------
00292     InitializationFileEntry     *Prev;
00293 
00294 
00295 //  ---------------------- Doxygen info ----------------------
00300 //  ----------------------------------------------------------
00301     InitializationFileEntry     *Next;
00302 
00303 
00304 //  ---------------------- Doxygen info ----------------------
00310 //  ----------------------------------------------------------
00311     char                        Name[NAMELEN];
00312 
00313 
00314 //  ---------------------- Doxygen info ----------------------
00319 //  ----------------------------------------------------------
00320     char                        Value[VALUELEN];
00321 
00322 
00323 //  ---------------------- Doxygen info ----------------------
00328 //  ----------------------------------------------------------
00329     char                        EntryName[NAMELEN];
00330 
00331 
00332 //  ---------------------- Doxygen info ----------------------
00337 //  ----------------------------------------------------------
00338     char                        SectionName[NAMELEN];
00339 
00340 
00341 //  ---------------------- Doxygen info ----------------------
00348 //  ----------------------------------------------------------
00349     char                        CurrentSectionName[NAMELEN];
00350 
00351 };  // class InitializationFileEntry
00352 
00353 
00354 #endif
This document was generated with Doxygen on Thu Apr 12 2012 11:18:53. User documentation of the Fast Research Interface Library for the KUKA Lightweight Robot IV by the Stanford Robotics Research Group. Copyright 2010–2012.