Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::FileSystemWatcher::Notification Struct Reference

Notification holding type and path. More...

#include <FileSystemWatcher.h>

Public Member Functions

SC::Result getFullPath (StringPath &path) const
 Get the full path of the file being watched.
 

Public Attributes

StringSpan basePath
 Reference to the watched directory.
 
StringSpan relativePath
 Relative path of the file being notified from basePath
 
Operation operation = Operation::Modified
 Notification type.
 

Friends

struct Internal
 

Detailed Description

Notification holding type and path.

Member Function Documentation

◆ getFullPath()

SC::Result SC::FileSystemWatcher::Notification::getFullPath ( StringPath & path) const

Get the full path of the file being watched.

Parameters
pathStringPath that will hold full (absolute) path
Returns
Invalid result if it's not possible building the full path

Member Data Documentation

◆ basePath

StringSpan SC::FileSystemWatcher::Notification::basePath

Reference to the watched directory.

◆ operation

Operation SC::FileSystemWatcher::Notification::operation = Operation::Modified

Notification type.

◆ relativePath

StringSpan SC::FileSystemWatcher::Notification::relativePath

Relative path of the file being notified from basePath


The documentation for this struct was generated from the following file: