FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
copyscan.hpp
1 /*
2  * Copyright (C) 2015, Siemens AG
3  * Author: Florian Krügel
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2
7  * as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12  * See the GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 
19 #ifndef COPYSCAN_HPP_
20 #define COPYSCAN_HPP_
21 
22 #include "scanners.hpp"
23 #include "regex.hpp"
24 
29 class hCopyrightScanner : public scanner
30 {
31 public:
32  void ScanString(const string& s, list<match>& results) const;
34 private:
46 } ;
47 
48 #endif
49 
rx::regex regNonBlank
Definition: copyscan.hpp:45
rx::regex regSimpleCopyright
Definition: copyscan.hpp:45
Utilities to help scanners.
int s
The socket that the CLI will use to communicate.
Definition: fo_cli.c:48
Abstract class to provide interface to scanners.
Definition: scanners.hpp:62
void ScanString(const string &s, list< match > &results) const
Scan a given string for copyright statements.
Definition: copyscan.cc:55
hCopyrightScanner()
Constructor for default hCopyrightScanner.
Definition: copyscan.cc:31
rx::regex regCopyright
Definition: copyscan.hpp:45
rx::regex regException
Definition: copyscan.hpp:45
list_t type structure used to keep various lists. (e.g. there are multiple lists).
Definition: nomos.h:321
Implementation of scanner class for copyright.
Definition: copyscan.hpp:29