midday-commander
Loading...
Searching...
No Matches
src
State.h
Go to the documentation of this file.
1
//
2
// Created by Vojtěch Pašek on 13.05.2023.
3
//
4
5
#ifndef MIDDAY_COMMANDER_STATE_H
6
#define MIDDAY_COMMANDER_STATE_H
7
8
#include <set>
9
10
#include "
entry/Entry.h
"
11
#include "
Utility.h
"
12
16
class
State
{
17
private
:
21
struct
cmpEntry
{
22
bool
operator()
(
const
std::shared_ptr<Entry>& lhs,
const
std::shared_ptr<Entry>& rhs)
const
{
23
return
lhs->path < rhs->path;
24
}
25
};
26
public
:
27
bool
running
=
true
;
28
std::set<std::shared_ptr<Entry>,
cmpEntry
>
selected
;
29
};
30
31
32
#endif
//MIDDAY_COMMANDER_STATE_H
Entry.h
Utility.h
State
Holds the global state of the Application.
Definition:
State.h:16
State::selected
std::set< std::shared_ptr< Entry >, cmpEntry > selected
Definition:
State.h:28
State::running
bool running
Definition:
State.h:27
State::cmpEntry
Custom comparator for State.selected.
Definition:
State.h:21
State::cmpEntry::operator()
bool operator()(const std::shared_ptr< Entry > &lhs, const std::shared_ptr< Entry > &rhs) const
Definition:
State.h:22
Generated by
1.9.6