source: trunk/yat/omic/GFF3.cc @ 2482

Last change on this file since 2482 was 2482, checked in by Peter, 12 years ago

new class GFF. closes #647

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1// $Id: GFF3.cc 2482 2011-04-24 22:17:19Z peter $
2
3/*
4  Copyright (C) 2011 Peter Johansson
5
6  This file is part of the yat library, http://dev.thep.lu.se/yat
7
8  The yat library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 3 of the
11  License, or (at your option) any later version.
12
13  The yat library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  General Public License for more details.
17
18  You should have received a copy of the GNU General Public License
19  along with yat. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22#include "GFF3.h"
23
24#include "yat/utility/split.h"
25
26#include <map>
27#include <string>
28#include <vector>
29
30namespace theplu {
31namespace yat {
32namespace omic {
33
34  void GFF3::add_attribute(std::map<std::string, std::string>& m,
35                           const std::string& str) const
36  {
37    std::vector<std::string> v;
38    utility::split(v, str, '=');
39    m[v[0]] = v[1];
40  }
41
42}}}
43
Note: See TracBrowser for help on using the repository browser.