Skyld AV
0.6
On access virus scanning for Linux
|
The environment holds variables that are shared by instances of multiple classes. More...
#include <Environment.h>
Public Member Functions | |
Environment () | |
Creates a new environment. More... | |
int | isCleanCacheOnUpdate () |
Determines if cache shall be cleaned when the virus scanner receives a new pattern file. More... | |
StringSet * | getExcludePaths () |
Gets the set of paths that shall not be scanned. More... | |
StringSet * | getLocalFileSystems () |
Gets the list of file systems considered local. This list can be used to decide if scan results shall be cached. More... | |
StringSet * | getNoMarkFileSystems () |
Gets the list of file systems that shall not be scanned. More... | |
StringSet * | getNoMarkMounts () |
Gets the list of mounts not to be scanned. More... | |
unsigned int | getCacheMaxSize () |
Gets the maximum number of entries in the cache with scan results. More... | |
void | setCacheMaxSize (unsigned int) |
Sets the maximum number of entries in the cache with scan results. More... | |
void | setCleanCacheOnUpdate (int) |
Sets if cache shall be cleaned when the virus scanner receives a new pattern file. More... | |
ScanCache * | getScanCache () |
Gets the scan cache. More... | |
int | getNumberOfThreads () |
Gets the number of threads used to call the virus scanner. More... | |
void | setNumberOfThreads (int) |
sets the number of threads used to call the virus scanner. More... | |
virtual | ~Environment () |
Destroys the environment. More... | |
Private Member Functions | |
Environment (const Environment &) | |
Private Attributes | |
StringSet * | excludepath |
Paths to be excluded from scanning. More... | |
StringSet * | localfs |
File systems for local drives. More... | |
StringSet * | nomarkfs |
File systems which shall not be scanned. More... | |
StringSet * | nomarkmnt |
Mounts that shall not be scanned. More... | |
int | nThreads |
Number of threads for virus scanning. More... | |
ScanCache * | scache |
Cache for scan results. More... | |
unsigned int | cacheMaxSize |
Maximum cache size. More... | |
int | cleanCacheOnUpdate |
Clean cache when the virus scanner receives a new pattern file. More... | |
The environment holds variables that are shared by instances of multiple classes.
Definition at line 38 of file Environment.h.
Environment::Environment | ( | ) |
Creates a new environment.
Definition at line 29 of file Environment.cc.
|
virtual |
Destroys the environment.
Definition at line 145 of file Environment.cc.
|
private |
unsigned int Environment::getCacheMaxSize | ( | ) |
Gets the maximum number of entries in the cache with scan results.
Definition at line 92 of file Environment.cc.
StringSet * Environment::getExcludePaths | ( | ) |
Gets the set of paths that shall not be scanned.
Definition at line 55 of file Environment.cc.
StringSet * Environment::getLocalFileSystems | ( | ) |
Gets the list of file systems considered local. This list can be used to decide if scan results shall be cached.
Definition at line 83 of file Environment.cc.
StringSet * Environment::getNoMarkFileSystems | ( | ) |
Gets the list of file systems that shall not be scanned.
Definition at line 64 of file Environment.cc.
StringSet * Environment::getNoMarkMounts | ( | ) |
Gets the list of mounts not to be scanned.
Definition at line 73 of file Environment.cc.
int Environment::getNumberOfThreads | ( | ) |
Gets the number of threads used to call the virus scanner.
Definition at line 119 of file Environment.cc.
ScanCache * Environment::getScanCache | ( | ) |
Gets the scan cache.
Definition at line 110 of file Environment.cc.
int Environment::isCleanCacheOnUpdate | ( | ) |
Determines if cache shall be cleaned when the virus scanner receives a new pattern file.
Definition at line 46 of file Environment.cc.
void Environment::setCacheMaxSize | ( | unsigned int | size | ) |
Sets the maximum number of entries in the cache with scan results.
size | maximum cache size |
Definition at line 101 of file Environment.cc.
void Environment::setCleanCacheOnUpdate | ( | int | value | ) |
Sets if cache shall be cleaned when the virus scanner receives a new pattern file.
value | cache shall be cleaned on update |
Definition at line 129 of file Environment.cc.
void Environment::setNumberOfThreads | ( | int | n | ) |
sets the number of threads used to call the virus scanner.
n | number of threads |
Definition at line 138 of file Environment.cc.
|
private |
Maximum cache size.
Definition at line 81 of file Environment.h.
|
private |
Clean cache when the virus scanner receives a new pattern file.
Definition at line 85 of file Environment.h.
|
private |
Paths to be excluded from scanning.
Definition at line 57 of file Environment.h.
|
private |
File systems for local drives.
Definition at line 61 of file Environment.h.
|
private |
File systems which shall not be scanned.
Definition at line 65 of file Environment.h.
|
private |
Mounts that shall not be scanned.
Definition at line 69 of file Environment.h.
|
private |
Number of threads for virus scanning.
Definition at line 73 of file Environment.h.
|
private |
Cache for scan results.
Definition at line 77 of file Environment.h.