1 /* $Id: idmapper_builtin.cpp 472138 2015-07-07 16:07:55Z grichenk $
2 * ===========================================================================
3 *
4 * PUBLIC DOMAIN NOTICE
5 * National Center for Biotechnology Information
6 *
7 * This software/database is a "United States Government Work" under the
8 * terms of the United States Copyright Act. It was written as part of
9 * the author's official duties as a United States Government employee and
10 * thus cannot be copyrighted. This software/database is freely available
11 * to the public for use. The National Library of Medicine and the U.S.
12 * Government have not placed any restriction on its use or reproduction.
13 *
14 * Although all reasonable efforts have been taken to ensure the accuracy
15 * and reliability of the software and data, the NLM and the U.S.
16 * Government do not and cannot warrant the performance or results that
17 * may be obtained by using this software or data. The NLM and the U.S.
18 * Government disclaim all warranties, express or implied, including
19 * warranties of performance, merchantability or fitness for any particular
20 * purpose.
21 *
22 * Please cite the author in any work or product based on this material.
23 *
24 * ===========================================================================
25 *
26 * Author: Frank Ludwig
27 *
28 * File Description:
29 *
30 */
31
32 #include <ncbi_pch.hpp>
33 #include <corelib/ncbistd.hpp>
34 #include <corelib/ncbiapp.hpp>
35
36 // Objects includes
37 #include <objects/seqloc/Seq_id.hpp>
38 #include <objects/seqloc/Seq_loc.hpp>
39
40 #include <objtools/readers/reader_exception.hpp>
41 #include <objtools/readers/line_error.hpp>
42 #include <objtools/readers/message_listener.hpp>
43 #include <objtools/readers/idmapper.hpp>
44
45 BEGIN_NCBI_SCOPE
46 USING_SCOPE(objects);
47
48
49 extern const char* sc_BuiltinConfig;
50
CIdMapperBuiltin(const std::string & strContext,bool bInvert,ILineErrorListener * pErrors)51 CIdMapperBuiltin::CIdMapperBuiltin(const std::string& strContext,
52 bool bInvert,
53 ILineErrorListener* pErrors)
54 : CIdMapperConfig(strContext, bInvert, pErrors)
55 {
56 Initialize();
57 }
58
59
Initialize()60 void CIdMapperBuiltin::Initialize()
61 {
62 CNcbiIstrstream is(sc_BuiltinConfig, strlen(sc_BuiltinConfig));
63 CIdMapperConfig::Initialize(is);
64 }
65
66
67
68 //////////////////////////////////////////////////////////////////////////////
69
70 #include "idmapper_builtin_config.inl"
71
72 END_NCBI_SCOPE
73
74