Dataset.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2006-2011, SRI International (R)
00003  *
00004  * This program is free software: you can redistribute it and/or modify
00005  * it under the terms of the GNU Lesser General Public License as published by
00006  * the Free Software Foundation, either version 3 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public License
00015  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00016  */
00017 
00018 #pragma once
00019 
00020 #ifndef __OpenKarto_Dataset_h__
00021 #define __OpenKarto_Dataset_h__
00022 
00023 #include <OpenKarto/Referenced.h>
00024 #include <OpenKarto/Objects.h>
00025 
00026 namespace karto
00027 {
00028 
00030 
00031 
00035 
00036   struct DatasetPrivate;
00037 
00042   class KARTO_DEPRECATED KARTO_EXPORT Dataset : public Referenced
00043   {
00044   public:
00048     Dataset();
00049 
00050   protected:
00051     //@cond EXCLUDE
00055     virtual ~Dataset();
00056     //@endcond
00057     
00058   public:
00063     void Add(Object* pObject);
00064 
00069     DatasetInfo* GetDatasetInfo();
00070 
00074     void Clear();
00075 
00080     const ObjectList& GetObjects() const;
00081 
00082   public:
00088     Object* operator [] (kt_int32u index) const;
00089 
00090   private:
00091     // restrict the following functions
00092     Dataset(const Dataset&);
00093     const Dataset& operator=(const Dataset&);
00094 
00095   private:
00096     DatasetPrivate* m_pDatasetPrivate;
00097   }; // class Dataset
00098 
00102   typedef SmartPointer<Dataset> DatasetPtr;
00103 
00105 
00106 }
00107 
00108 #endif // __OpenKarto_Dataset_h__


nav2d_karto
Author(s): Sebastian Kasperski
autogenerated on Sun Apr 2 2017 03:53:08