source: trunk/se/lu/thep/wenni/bin/BaseFileConverter/Data.h @ 95

Last change on this file since 95 was 95, checked in by Jari Häkkinen, 15 years ago

Added copyright statement to files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1// $Id: Data.h 95 2006-04-05 13:21:18Z jari $
2
3/*
4  Copyright (C) 2005, 2006 Jari Häkkinen, Peter Johansson
5
6  This file is part of WeNNI,
7  http://lev.thep.lu.se/trac/baseplugins/wiki/WeNNI
8
9  WeNNI is free software; you can redistribute it and/or modify it
10  under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or
12  (at your option) any later version.
13
14  WeNNI is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
17  License for more details.
18
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22  02111-1307, USA.
23*/
24
25#ifndef _theplu_wenni_basefileconverter_data_
26#define _theplu_wenni_basefileconverter_data_
27
28// #include <basefile.h>
29
30#include <string>
31#include <vector>
32
33namespace BASE {
34  class BaseFileSection;
35}
36
37namespace theplu {
38namespace wenni {
39
40  class Data
41  {
42  public:
43    Data(BASE::BaseFileSection&,const std::string&, const std::string&);
44
45    void push_back(const std::vector<std::string>&);
46
47    inline int total_nof_columns(void) { return total_nof_columns_; }
48
49    void write_matrix(void);
50
51  private:
52    std::vector<std::vector<std::string> > data_;
53    int column_number_;
54    int column_offset_;
55    int total_nof_columns_;
56    int nof_assays_;
57    int nof_fields_per_assay_;
58    std::string column_name_;
59    std::string output_file_;
60  };
61
62}} // of namespace wenni and namespace theplu
63
64#endif
Note: See TracBrowser for help on using the repository browser.