Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

DataSource.sip

Go to the documentation of this file.
00001 /* -*- mode:c++ -*- */
00002 
00016 class DataSource
00017 {
00018 %TypeHeaderCode
00019 #include "datasrcs/DataSource.h"
00020 #include <string>
00021 %End
00022 
00023 protected:
00024 
00025   DataSource ();
00026 
00027 public:
00028 
00029   virtual ~DataSource ();
00030 
00031   void setName ( const std::string & );
00032   const std::string & getName() const;
00033 
00034   bool setLabelAt ( const std::string &, unsigned );
00035   virtual void setLabels ( const std::vector<std::string> & );
00036 
00037   virtual const std::string & getLabelAt ( unsigned )
00038     throw ( DataSourceException );
00039 
00040   void setTitle ( const std::string & );
00041   const std::string & title () const;
00042 
00043   virtual unsigned columns () const;
00044   virtual unsigned rows () const = 0;
00045   virtual bool empty () const = 0;
00046 
00047 private :
00048   virtual void valueAt ( unsigned int, unsigned int ) const = 0;
00049 };

Generated on Wed Sep 7 14:51:29 2005 for SiHippo by  doxygen 1.4.3