suplibxx  1.3.13
colselect.h
1 #ifndef SUPLIB_PP_COLSELECT_H
2 #define SUPLIB_PP_COLSELECT_H
3 
4 // --8<--8<--8<--8<--
5 //
6 // Copyright (C) 2006 Smithsonian Astrophysical Observatory
7 //
8 // This file is part of suplibxx
9 //
10 // suplibxx is free software; you can redistribute it and/or
11 // modify it under the terms of the GNU General Public License
12 // as published by the Free Software Foundation; either version 2
13 // of the License, or (at your option) any later version.
14 //
15 // suplibxx is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with this program; if not, write to the
22 // Free Software Foundation, Inc.
23 // 51 Franklin Street, Fifth Floor
24 // Boston, MA 02110-1301, USA
25 //
26 // -->8-->8-->8-->8--
27 
28 #include <string>
29 #include <vector>
30 
31 namespace suplib {
32 
33  void colselect( const std::vector<std::string>& icolumns,
34  const std::vector<std::string>& exact_add,
35  const std::vector<std::string>& regex_add,
36  const std::vector<std::string>& exact_del,
37  const std::vector<std::string>& regex_del,
38  std::vector<std::string>& ocolumns
39  );
40 
41  bool match( const std::string& str, const std::string& pattern );
42 
43 } // namespace suplib
44 
45 #endif
The suplib namespace encompasses all of the functions in the suplib++ library.
bool match(const std::string &str, const std::string &pattern)
handles Perl regular expression matching.
Definition: match.cc:50
void colselect(const std::vector< std::string > &icolumns, const std::vector< std::string > &exact_add, const std::vector< std::string > &regex_add, const std::vector< std::string > &exact_del, const std::vector< std::string > &regex_del, std::vector< std::string > &ocolumns)
select columns based on exact/regex matching/exclusion.
Definition: colselect.cc:57