NCBI C++ ToolKit
ncbi_traces_path.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef SRA__READER__NCBI_TRACES_PATH__HPP
2 #define SRA__READER__NCBI_TRACES_PATH__HPP
3 /* $Id: ncbi_traces_path.hpp 77773 2017-05-05 17:36:43Z vasilche $
4  * ===========================================================================
5  *
6  * PUBLIC DOMAIN NOTICE
7  * National Center for Biotechnology Information
8  *
9  * This software/database is a "United States Government Work" under the
10  * terms of the United States Copyright Act. It was written as part of
11  * the author's official duties as a United States Government employee and
12  * thus cannot be copyrighted. This software/database is freely available
13  * to the public for use. The National Library of Medicine and the U.S.
14  * Government have not placed any restriction on its use or reproduction.
15  *
16  * Although all reasonable efforts have been taken to ensure the accuracy
17  * and reliability of the software and data, the NLM and the U.S.
18  * Government do not and cannot warrant the performance or results that
19  * may be obtained by using this software or data. The NLM and the U.S.
20  * Government disclaim all warranties, express or implied, including
21  * warranties of performance, merchantability or fitness for any particular
22  * purpose.
23  *
24  * Please cite the author in any work or product based on this material.
25  *
26  * ===========================================================================
27  *
28  * Authors: Eugene Vasilchenko
29  *
30  * File Description:
31  * Standard path to NCBI SRA & BAM files.
32  *
33  */
34 
35 #include <ncbiconf.h>
36 
37 #ifdef NCBI_OS_DARWIN
38 # define PANFS_TRACES_PATH(num) "/net/traces" num
39 # define NETAPP_TRACES_PATH(num) "/net/traces" num
40 #elif defined(NCBI_OS_MSWIN)
41 # define PANFS_TRACES_PATH(num) "//panfs/traces" num
42 # define NETAPP_TRACES_PATH(num) "//traces" num
43 #elif defined(NCBI_OS_LINUX) && SIZEOF_VOIDP == 4
44 # define PANFS_TRACES_PATH(num) "/net/traces" num
45 # define NETAPP_TRACES_PATH(num) "/netmnt/traces" num
46 #else
47 # define PANFS_TRACES_PATH(num) "/panfs/traces" num ".be-md.ncbi.nlm.nih.gov"
48 # define NETAPP_TRACES_PATH(num) "/netmnt/traces" num
49 #endif
50 
51 #define NCBI_TRACES01_PATH PANFS_TRACES_PATH("01")
52 #define NCBI_TRACES02_PATH PANFS_TRACES_PATH("02")
53 #define NCBI_TRACES03_PATH PANFS_TRACES_PATH("03")
54 #define NCBI_TRACES04_PATH NETAPP_TRACES_PATH("04")
55 
56 #define NCBI_SRA_REP_PATH NCBI_TRACES04_PATH ":" NCBI_TRACES01_PATH
57 #define NCBI_SRA_VOL_PATH \
58  "sra25:sra24:sra23:sra22:sra21:sra20:" \
59  "sra19:sra18:sra17:sra16:sra15:sra14:sra13:sra12:sra11:sra10:" \
60  "sra9:sra8:sra7:sra6:sra5:sra4:sra3:sra2:sra1:sra0" \
61  "era11:era10:era9:era8:era7:era6:era5:era4:era3:era2:era1:era0:" \
62  "dra2:dra1:dra0"
63 
64 #define NCBI_SRZ_REP_PATH NCBI_TRACES04_PATH ":" NCBI_TRACES01_PATH
65 #define NCBI_SRZ_VOL_PATH "sra8:srz0"
66 
67 #endif // SRA__READER__NCBI_TRACES_PATH__HPP
Front end for a platform-specific configuration summary.
Modified on Wed Apr 17 13:10:36 2024 by modify_doxy.py rev. 669887