Sleipnir
tools/BNServer/stdafx.h
00001 /*****************************************************************************
00002 * This file is provided under the Creative Commons Attribution 3.0 license.
00003 *
00004 * You are free to share, copy, distribute, transmit, or adapt this work
00005 * PROVIDED THAT you attribute the work to the authors listed below.
00006 * For more information, please see the following web page:
00007 * http://creativecommons.org/licenses/by/3.0/
00008 *
00009 * This file is a component of the Sleipnir library for functional genomics,
00010 * authored by:
00011 * Curtis Huttenhower (chuttenh@princeton.edu)
00012 * Mark Schroeder
00013 * Maria D. Chikina
00014 * Olga G. Troyanskaya (ogt@princeton.edu, primary contact)
00015 *
00016 * If you use this library, the included executable tools, or any related
00017 * code in your work, please cite the following publication:
00018 * Curtis Huttenhower, Mark Schroeder, Maria D. Chikina, and
00019 * Olga G. Troyanskaya.
00020 * "The Sleipnir library for computational functional genomics"
00021 *****************************************************************************/
00022 #ifndef STDAFX_H
00023 #define STDAFX_H
00024 
00025 #define __STDC_LIMIT_MACROS
00026 
00027 #include <fstream>
00028 #include <cstdlib>
00029 #include <iomanip>
00030 #include <queue>
00031 #include <sstream>
00032 using namespace std;
00033 
00034 #ifdef _MSC_VER
00035 #include <io.h>
00036 #include <winsock2.h>
00037 #else // _MSC_VER
00038 #include <arpa/inet.h>
00039 #include <netinet/in.h>
00040 
00041 #define SOCKET      int
00042 
00043 inline bool _mktemp_s( char* szTemplate ) {
00044 
00045     return !mktemp( szTemplate ); }
00046 #endif // _MSC_VER
00047 
00048 #include <pthread.h>
00049 
00050 #include <boost/graph/graphviz.hpp>
00051 #undef INTMAX_C
00052 #undef UINTMAX_C
00053 
00054 #include "annotation.h"
00055 #include "bayesnet.h"
00056 #include "color.h"
00057 #include "database.h"
00058 #include "genome.h"
00059 #include "meta.h"
00060 #include "server.h"
00061 #include "serverclient.h"
00062 #include "statistics.h"
00063 using namespace Sleipnir;
00064 
00065 #endif // STDAFX_H