FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Abstract class to provide interface to scanners. More...
#include <scanners.hpp>
Public Member Functions | |
virtual void | ScanString (const string &s, list< match > &results) const =0 |
Scan the given string and add matches to results. More... | |
virtual void | ScanFile (const string &fileName, list< match > &results) const |
Helper function to scan file. More... | |
Abstract class to provide interface to scanners.
Definition at line 51 of file scanners.hpp.
|
inlinevirtual |
Helper function to scan file.
Reads file contents to string and pass to ScanString()
[in] | fileName | File name to scan |
[out] | results | Copyright matches are appended to this list |
Definition at line 70 of file scanners.hpp.
Scan the given string and add matches to results.
[in] | s | String to scan |
[out] | results | Copyright matches are appended to this list |
Implemented in regexScanner, and hCopyrightScanner.