globals_public.h

Go to the documentation of this file.
00001 /*
00002  *
00003  * C++ sphinx search client library
00004  * Copyright (C) 2007  Seznam.cz, a.s.
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  *
00020  * Seznam.cz, a.s.
00021  * Radlicka 2, Praha 5, 15000, Czech Republic
00022  * http://www.seznam.cz, mailto:sphinxclient@firma.seznam.cz
00023  *
00024  *
00025  * $Id: globals_public.h 32 2013-01-21 12:07:00Z honkir $
00026  *
00027  * DESCRIPTION
00028  * Public global enum declarations (command versions)
00029  *
00030  * AUTHOR
00031  * Jan Kirschner <jan.kirschner@firma.seznam.cz>
00032  *
00033  * HISTORY
00034  * 2007-01-03 (jan.kirschner)
00035  *            First draft.
00036  */
00037 
00039 
00040 #ifndef __SPHINX_GLOBALS_PUBLIC_H__
00041 #define __SPHINX_GLOBALS_PUBLIC_H__
00042 
00043 #include <vector>
00044 
00045 namespace Sphinx {
00046 
00047 enum SearchCommandVersion_t {
00048     VER_COMMAND_SEARCH_0_9_9 = 0x116,
00049     VER_COMMAND_SEARCH_2_0_5 = 0x119
00050 };
00051 
00052 enum UpdateCommandVersion_t { VER_COMMAND_UPADTE_0_9_8 = 0x101 };
00053 
00054 enum KeywordsCommandVersion_t { VER_COMMAND_KEYWORDS_0_9_8 = 0x100 };
00055 
00056 
00057 //typedefs
00058 typedef std::vector<uint64_t> Int64Array_t;
00059 typedef std::vector<uint32_t> IntArray_t;
00060 
00061 }//namespace
00062 
00063 #endif
00064