00001 #ifndef QBCONFIGFILE_H
00002 #define QBCONFIGFILE_H
00003
00004 #include <Inventor/SoInput.h>
00005 #include <Inventor/lists/SbStringList.h>
00006
00007 class QbConfigFile : private SoInput {
00008 typedef SoInput inherited;
00009 public:
00010 virtual SbBool openFile(const char *fileName, SbBool okIfNotFound = 0);
00011 const SbStringList & getValues();
00012 const SbStringList & getNames();
00013 ~QbConfigFile();
00014 private:
00015 void clear();
00016 SbStringList names;
00017 SbStringList values;
00018 };
00019
00020
00021 inline QbConfigFile::~QbConfigFile() {
00022 clear();
00023 }
00024
00025
00026 inline const SbStringList & QbConfigFile::getValues() {
00027 return values;
00028 }
00029
00030
00031 inline const SbStringList & QbConfigFile::getNames() {
00032 return names;
00033 }
00034
00035 #endif