typedef.hxx
Go to the documentation of this file.
1 /*===========================================================================================================
2  *
3  * SHA-L - Simple Hybesis Algorithm Logger
4  *
5  * Copyright (c) Michael Jeulin-Lagarrigue
6  *
7  * Licensed under the MIT License, you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * https://github.com/michael-jeulinl/Simple-Hybesis-Algorithms-Logger/blob/master/LICENSE
11  *
12  * Unless required by applicable law or agreed to in writing, software distributed under the License is
13  * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and limitations under the License.
15  *
16  * The above copyright notice and this permission notice shall be included in all copies or
17  * substantial portions of the Software.
18  *
19  *=========================================================================================================*/
20 #ifndef MODULE_LOGGER_TYPEDEF_HXX
21 #define MODULE_LOGGER_TYPEDEF_HXX
22 
23 // JSON lib includes
24 #include <rapidjson/ostreamwrapper.h>
25 #include <rapidjson/prettywriter.h>
26 
27 // STD includes
28 #include <string>
29 
30 namespace SHA_Logger
31 {
32  typedef rapidjson::OStreamWrapper Stream;
33  typedef rapidjson::PrettyWriter<Stream> Writer;
34 
35  // STD typedef
36  typedef const std::string String;
37  typedef std::ostream Ostream;
38  typedef std::ofstream OFStream;
39 
40  // Constants
41  static const std::string kSeqName = "sequence";
42 }
43 
44 #endif // MODULE_LOGGER_TYPEDEF_HXX
const std::string String
Definition: typedef.hxx:36
std::ofstream OFStream
Definition: typedef.hxx:38
rapidjson::OStreamWrapper Stream
Definition: typedef.hxx:32
static const std::string kSeqName
Definition: typedef.hxx:41
std::ostream Ostream
Definition: typedef.hxx:37
rapidjson::PrettyWriter< Stream > Writer
Definition: typedef.hxx:33