MPD: LightDirectory Struct Reference

MPD 0.20.15

Public Member Functions | Static Public Member Functions | Data Fields
LightDirectory Struct Reference

A reference to a directory. More...

`#include <LightDirectory.hxx>`

## Public Member Functions
constexpr | LightDirectory (const char *_uri, time_t _mtime)
bool | IsRoot () const noexcept
gcc_pure const char * | GetPath () const noexcept

## Static Public Member Functions
static constexpr LightDirectory | Root () noexcept

## Data Fields
const char * | uri
time_t | mtime

## Detailed Description

A reference to a directory.

Unlike the Directory class, this one consists only of pointers. It is supposed to be as light as possible while still providing all the information MPD has about a directory. This class does not manage any memory, and the pointers become invalid quickly. Only to be used to pass around during well-defined situations.

Definition at line 39 of file LightDirectory.hxx.

## Constructor & Destructor Documentation

## ◆ LightDirectory()

constexpr LightDirectory::LightDirectory | ( | const char * | _uri,
|  | time_t | _mtime
| ) |  |
| inline

Definition at line 44 of file LightDirectory.hxx.

## Member Function Documentation

## ◆ GetPath()

gcc_pure const char* LightDirectory::GetPath | ( |  | ) | const
| inlinenoexcept

Definition at line 56 of file LightDirectory.hxx.

## ◆ IsRoot()

bool LightDirectory::IsRoot | ( |  | ) | const
| inlinenoexcept

Definition at line 51 of file LightDirectory.hxx.

## ◆ Root()

static constexpr LightDirectory LightDirectory::Root | ( |  | ) |
| inlinestaticnoexcept

Definition at line 47 of file LightDirectory.hxx.

## Field Documentation

## ◆ mtime

time_t LightDirectory::mtime

Definition at line 42 of file LightDirectory.hxx.

## ◆ uri

const char* LightDirectory::uri

Definition at line 40 of file LightDirectory.hxx.

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

- db/LightDirectory.hxx