Cogs.Foundation
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
Cogs::Storage Struct Reference

Public Types

typedef std::unordered_map< std::string, ItemItemMap
 

Public Member Functions

ItemMap::const_iterator FindItem (int wd) const
 

Public Attributes

int notifyHandle = -1
 
std::mutex mutex
 
ItemMap items
 
std::thread watcherThread
 
bool volatile watcherDone = false
 
drfsw_context * fswContext = nullptr
 
std::mutex directoriesMutex
 
std::unordered_map< std::string, DirectoryEntrydirectories
 
std::mutex filesMutex
 
std::unordered_map< std::string, FileEntryfiles
 
std::atomic< bool > watcherDone = false
 

Member Typedef Documentation

◆ ItemMap

typedef std::unordered_map<std::string, Item> Cogs::Storage::ItemMap

Member Function Documentation

◆ FindItem()

ItemMap::const_iterator Cogs::Storage::FindItem ( int  wd) const
inline

References items.

Member Data Documentation

◆ directories

std::unordered_map<std::string, DirectoryEntry> Cogs::Storage::directories

◆ directoriesMutex

std::mutex Cogs::Storage::directoriesMutex

◆ files

std::unordered_map<std::string, FileEntry> Cogs::Storage::files

◆ filesMutex

std::mutex Cogs::Storage::filesMutex

◆ fswContext

drfsw_context* Cogs::Storage::fswContext = nullptr

◆ items

ItemMap Cogs::Storage::items

Referenced by FindItem().

◆ mutex

std::mutex Cogs::Storage::mutex

◆ notifyHandle

int Cogs::Storage::notifyHandle = -1

◆ watcherDone [1/2]

bool volatile Cogs::Storage::watcherDone = false

◆ watcherDone [2/2]

std::atomic<bool> Cogs::Storage::watcherDone = false

◆ watcherThread

std::thread Cogs::Storage::watcherThread

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