Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MolData.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file /grid/src/core/chemical/sdf/MolData.hh
11 /// @author Sam DeLuca
12 
13 #ifndef INCLUDED_core_chemical_sdf_MolData_hh
14 #define INCLUDED_core_chemical_sdf_MolData_hh
15 
17 #include <core/types.hh>
18 #include <utility/vector1.hh>
19 #include <map>
20 #include <string>
21 
22 namespace core {
23 namespace chemical {
24 namespace sdf {
25 
26 class MolData
27 {
28 public:
29  MolData();
30  virtual ~MolData();
31  void parse_mol_data(utility::vector1<std::string> const & file_lines);
32  core::Size size();
33  void clear();
34  std::string get_mol_data(std::string const & key) const;
35  utility::vector1<std::string> get_mol_data_string_vector(std::string const & key,char const & splitter) const;
36  void print() const;
37 private:
38  std::map<std::string,std::string> mol_data_map_;
39 
40 };
41 
42 }
43 }
44 }
45 
46 #endif /* MOLDATA_HH_ */