Builder.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *
00003  * Copyright (C) 2009 Cassio Neri Moreira
00004  *
00005  * This file is part of the KeyValue library.
00006  *
00007  * The KeyValue library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License as published
00009  * by the Free Software Foundation, either version 3 of the License, or (at
00010  * your option) any later version.
00011  *
00012  * The KeyValue library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
00015  * Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License along
00018  * with KeyValue. If not, see <http://www.gnu.org/licenses/>.
00019  *
00020  * If you modify this library, or any covered work, by linking or combining
00021  * it with Excel (or a modified version of that program), containing parts
00022  * covered by the terms of End-User License Agreement for Microsoft
00023  * Software, the licensors of KeyValue grant you additional permission to
00024  * convey the resulting work.
00025  *
00026  **************************************************************************/
00027 
00036 #ifndef KEYVALUE_MNGT_BUILDER_H_
00037 #define KEYVALUE_MNGT_BUILDER_H_
00038 
00039 // Includes many Builder related header files for users' convenience.
00040 
00041 #include "keyvalue/extern/Ptime.h"
00042 #include "keyvalue/extern/SharedPtr.h"
00043 #include "keyvalue/extern/String.h"
00044 #include "keyvalue/mngt/BuilderFrom.h"
00045 #include "keyvalue/mngt/Command.h"
00046 #include "keyvalue/mngt/DataSet.h"
00047 #include "keyvalue/mngt/Processor.h"
00048 #include "keyvalue/mngt/ProcessorInstantiator.h"
00049 #include "keyvalue/mngt/ProcessorMngr.h"
00050 #include "keyvalue/sys/exception/Exception.h"
00051 #include "keyvalue/util/Global.h"
00052 #include "keyvalue/value/Result.h"
00053 
00054 namespace keyvalue {
00055 
00059 namespace tag {
00060 }
00061 
00159 #ifdef DOXYGEN
00160   template<typename ObjectType>
00161   class Builder :
00162 
00163     public Processor {
00164 
00165   public:
00166 
00175     const char*
00176     getName() const;
00177 
00191     value::Result
00192     getResult(const DataSet& data) const;
00193 
00207     shared_ptr<ObjectType>
00208     getObject(const DataSet& data) const;
00209   };
00210 #endif
00211 
00212 template<typename ObjectType>
00213 class Builder;
00214 
00215 } // namespace keyvalue
00216 
00217 #endif // KEYVALUE_MNGT_BUILDER_H_