libQtCassandra 0.3.2

QCassandraConsistencyLevel.h

Go to the documentation of this file.
00001 /*
00002  * Header:
00003  *      QCassandraValue.h
00004  *
00005  * Description:
00006  *      Redefinition of the Cassandra consistency levels in the QtCassandra
00007  *      library.
00008  *
00009  * Documentation:
00010  *      See the corresponding .cpp file.
00011  *
00012  * License:
00013  *      Copyright (c) 2011 Made to Order Software Corp.
00014  * 
00015  *      http://snapwebsites.org/
00016  *      contact@m2osw.com
00017  * 
00018  *      Permission is hereby granted, free of charge, to any person obtaining a
00019  *      copy of this software and associated documentation files (the
00020  *      "Software"), to deal in the Software without restriction, including
00021  *      without limitation the rights to use, copy, modify, merge, publish,
00022  *      distribute, sublicense, and/or sell copies of the Software, and to
00023  *      permit persons to whom the Software is furnished to do so, subject to
00024  *      the following conditions:
00025  *
00026  *      The above copyright notice and this permission notice shall be included
00027  *      in all copies or substantial portions of the Software.
00028  *
00029  *      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00030  *      OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00031  *      MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00032  *      IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
00033  *      CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
00034  *      TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
00035  *      SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00036  */
00037 #ifndef QCASSANDRA_CONSISTENCY_LEVEL_H
00038 #define QCASSANDRA_CONSISTENCY_LEVEL_H
00039 
00040 #include <controlled_vars/controlled_vars_auto_init.h>
00041 #include <QtCore/QString>
00042 #include <QtCore/QByteArray>
00043 #include <QtCore/QDebug>
00044 #include <stdint.h>
00045 
00046 
00047 namespace QtCassandra
00048 {
00049 
00050 
00051 
00052 // redefined from the Thrift definition since we do not want
00053 // to have to include Thirft in our public header files.
00054 typedef int cassandra_consistency_level_t;
00055 
00056 extern const cassandra_consistency_level_t CONSISTENCY_LEVEL_DEFAULT;
00057 
00058 extern const cassandra_consistency_level_t CONSISTENCY_LEVEL_ONE;
00059 extern const cassandra_consistency_level_t CONSISTENCY_LEVEL_QUORUM;
00060 extern const cassandra_consistency_level_t CONSISTENCY_LEVEL_LOCAL_QUORUM;
00061 extern const cassandra_consistency_level_t CONSISTENCY_LEVEL_EACH_QUORUM;
00062 extern const cassandra_consistency_level_t CONSISTENCY_LEVEL_ALL;
00063 extern const cassandra_consistency_level_t CONSISTENCY_LEVEL_ANY;
00064 extern const cassandra_consistency_level_t CONSISTENCY_LEVEL_TWO;
00065 extern const cassandra_consistency_level_t CONSISTENCY_LEVEL_THREE;
00066 
00067 // CONSISTENCY_LEVEL_DEFAULT is -1 (which converts to CONSISTENCY_LEVEL_ONE when used)
00068 typedef controlled_vars::auto_init<cassandra_consistency_level_t, -1> consistency_level_t;
00069 
00070 
00071 
00072 
00073 } // namespace QtCassandra
00074 #endif
00075 //#ifndef QCASSANDRA_CONSISTENCY_LEVEL_H
00076 // vim: ts=4 sw=4 et
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

This document is part of the libQtCassandra Project.

Copyright by Made to Order Software Corp.