NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
Filewatcher Class Reference

#include <filewatcher.hpp>

Inheritance diagram for Filewatcher:
Collaboration diagram for Filewatcher:

Public Member Functions

 Filewatcher ()
 
bool SetDefaultPaths (const std::vector< std::string > &vPaths)
 
bool Add (const wxFileName &path, int events=wxFSW_EVENT_ALL)
 
bool Remove (const wxFileName &path)
 

Private Member Functions

bool isDefaultPath (const wxFileName &path)
 

Private Attributes

std::vector< std::string > vDefaultPaths
 
std::map< wxString, wxString > mWatchedFiles
 

Detailed Description

Definition at line 29 of file filewatcher.hpp.

Constructor & Destructor Documentation

◆ Filewatcher()

Filewatcher::Filewatcher ( )
inline

Definition at line 37 of file filewatcher.hpp.

Member Function Documentation

◆ Add()

bool Filewatcher::Add ( const wxFileName &  path,
int  events = wxFSW_EVENT_ALL 
)

Definition at line 50 of file filewatcher.cpp.

References isDefaultPath(), and mWatchedFiles.

Referenced by NumeReWindow::OpenSourceFile(), and NumeReWindow::SaveCurrentFile().

Here is the call graph for this function:

◆ isDefaultPath()

bool Filewatcher::isDefaultPath ( const wxFileName &  path)
private

Definition at line 23 of file filewatcher.cpp.

References replacePathSeparator(), and vDefaultPaths.

Referenced by Add(), and Remove().

Here is the call graph for this function:

◆ Remove()

bool Filewatcher::Remove ( const wxFileName &  path)

Definition at line 68 of file filewatcher.cpp.

References isDefaultPath(), and mWatchedFiles.

Referenced by NumeReWindow::CloseFile(), and NumeReWindow::SaveCurrentFile().

Here is the call graph for this function:

◆ SetDefaultPaths()

bool Filewatcher::SetDefaultPaths ( const std::vector< std::string > &  vPaths)

Definition at line 34 of file filewatcher.cpp.

References mWatchedFiles, and vDefaultPaths.

Referenced by NumeReWindow::EvaluateOptions().

Member Data Documentation

◆ mWatchedFiles

std::map<wxString,wxString> Filewatcher::mWatchedFiles
private

Definition at line 33 of file filewatcher.hpp.

Referenced by Add(), Remove(), and SetDefaultPaths().

◆ vDefaultPaths

std::vector<std::string> Filewatcher::vDefaultPaths
private

Definition at line 32 of file filewatcher.hpp.

Referenced by isDefaultPath(), and SetDefaultPaths().


The documentation for this class was generated from the following files: