SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
Dirent.cc
Go to the documentation of this file.
1
/*
2
* SWC-DB© Copyright since 2019 Alex Kashirin <kashirin.alex@gmail.com>
3
* License details at <https://github.com/kashirin-alex/swc-db/#license>
4
*/
5
6
7
#include "
swcdb/fs/Dirent.h
"
8
9
10
namespace
SWC
{
namespace
FS {
11
12
13
14
std::string
Dirent::to_string
()
const
{
15
std::string s(
"Dirent("
);
16
s.append(
"name="
);
17
s.append(
name
);
18
s.append(
" modified="
);
19
s.append(
std::to_string
(
last_modification_time
));
20
s.append(
" is_dir="
);
21
s.append(
std::to_string
(
is_dir
));
22
if
(!
is_dir
) {
23
s.append(
" length="
);
24
s.append(
std::to_string
(
length
));
25
}
26
s.append(
")\n"
);
27
return
s;
28
}
29
30
31
32
}}
SWC::FS::Dirent::to_string
std::string to_string() const
Definition:
Dirent.cc:14
SWC::FS::Dirent::is_dir
bool is_dir
Whether a directory.
Definition:
Dirent.h:60
Dirent.h
SWC::FS::Dirent::last_modification_time
int64_t last_modification_time
Last modification time.
Definition:
Dirent.h:58
SWC
The SWC-DB C++ namespace 'SWC'.
Definition:
main.cc:12
SWC::FS::Dirent::name
std::string name
File or Directory name.
Definition:
Dirent.h:56
SWC::FS::Dirent::length
uint64_t length
Length of file.
Definition:
Dirent.h:62
SWC::Core::to_string
SWC_CAN_INLINE std::string to_string(const BitFieldInt< T, SZ > &v)
Definition:
BitFieldInt.h:263
lib
swcdb
fs
Dirent.cc
Generated on Sat Jun 3 2023 18:00:09 for SWC-DB by
1.8.20