suplibxx  1.3.9
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 <algorithm>
29 #include <set>
30 #include <string>
31 #include <vector>
32 #include <pcre.h>
33 #include <Exception/Exception.h>
34 
35 using namespace std;
36 
37 namespace suplib {
38 
39  void colselect( const vector<string>& icolumns, const vector<string>& exact_add, const vector<string>& regex_add, const vector<string>& exact_del, const vector<string>& regex_del, vector<string>& ocolumns ) throw ( Exception );
40 
41  bool match( const string& str, const string& pattern ) throw ( Exception );
42 
43 } // namespace suplib
44 
45 #endif
bool match(const string &str, const string &pattern)
handles Perl regular expression matching.
Definition: match.cc:45
The suplib namespace encompasses all of the functions in the suplib++ library.
void colselect(const vector< string > &icolumns, const vector< string > &exact_add, const vector< string > &regex_add, const vector< string > &exact_del, const vector< string > &regex_del, vector< string > &ocolumns)
select columns based on exact/regex matching/exclusion.
Definition: colselect.cc:52