boostwrap.h

Go to the documentation of this file.
00001 ///
00002 /// \file       boostwrap.h
00003 ///             Wrap Boost serialization into its own lib, so each usage
00004 ///             in the tools doesn't cause a compile speed meltdown.
00005 ///
00006 
00007 /*
00008     Copyright (C) 2012, Net Direct Inc. (http://www.netdirect.ca/)
00009 
00010     This program is free software; you can redistribute it and/or modify
00011     it under the terms of the GNU General Public License as published by
00012     the Free Software Foundation; either version 2 of the License, or
00013     (at your option) any later version.
00014 
00015     This program is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00018 
00019     See the GNU General Public License in the COPYING file at the
00020     root directory of this project for more details.
00021 */
00022 
00023 #ifndef __BARRY_TOOLS_BOOSTWRAP_H__
00024 #define __BARRY_TOOLS_BOOSTWRAP_H__
00025 
00026 #include <barry/barry.h>
00027 
00028 #undef HANDLE_PARSER
00029 #define HANDLE_PARSER(tname) \
00030 bool LoadBoostFile(const std::string &filename, \
00031         std::vector<Barry::tname> &container, \
00032         std::string &dbName, \
00033         std::string &errmsg); \
00034 bool SaveBoostFile(const std::string &filename, \
00035         const std::vector<Barry::tname> &container, \
00036         std::string &errmsg);
00037 ALL_KNOWN_PARSER_TYPES
00038 
00039 #endif
00040