src/DAL/FieldValues.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2008 by Sverre Rabbelier                                *
00003  *   sverre@rabbelier.nl                                                   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 3 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #pragma once
00021 
00030 #include "Types.h"
00031 
00043 class FieldValues
00044 {
00045 public:
00047         FieldValues(TableImplPtr table);
00048         
00050         ~FieldValues();
00051         
00053         TableImplPtr getTable() const;
00054         
00056         void addValue(ValuePtr key);
00057         
00059         void addJoinedTable(TableImplPtr joinedTable);
00060         
00061         
00063         size_t size() const;
00064         
00066         ValuePtr first() const;
00067         
00069         ValueMap::const_iterator begin() const;
00070         
00072         ValueMap::const_iterator end() const;
00073         
00075         ValueMap::const_iterator find(FieldImplPtr field) const;
00076         
00078         ValuePtr getField(FieldImplPtr field) const;
00079 
00080 private:
00081         TableImplPtr m_table; 
00082         ValueMap m_fields; 
00083         TableImplVector m_joinedTables; 
00084 };

Generated for UnsignedByte by  doxygen 1.5.3
SourceForge.net Logo