Joedb
10.0.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
ssh
SFTP_Attributes.h
Go to the documentation of this file.
1
#ifndef joedb_ssh_SFTP_Attributes_declared
2
#define joedb_ssh_SFTP_Attributes_declared
3
4
#include "
joedb/error/assert.h
"
5
6
#include <libssh/sftp.h>
7
8
namespace
joedb
9
{
10
namespace
ssh
11
{
12
///////////////////////////////////////////////////////////////////////////
13
class
SFTP_Attributes
14
///////////////////////////////////////////////////////////////////////////
15
{
16
private
:
17
const
sftp_attributes attributes;
18
19
public
:
20
SFTP_Attributes
(sftp_attributes attributes): attributes(attributes)
21
{
22
JOEDB_RELEASE_ASSERT
(attributes);
23
}
24
25
sftp_attributes
get
()
const
26
{
27
return
attributes;
28
}
29
30
~SFTP_Attributes
()
31
{
32
if
(attributes)
33
sftp_attributes_free(attributes);
34
}
35
};
36
}
37
}
38
39
#endif
assert.h
joedb::ssh::SFTP_Attributes
Definition
SFTP_Attributes.h:15
joedb::ssh::SFTP_Attributes::~SFTP_Attributes
~SFTP_Attributes()
Definition
SFTP_Attributes.h:30
joedb::ssh::SFTP_Attributes::SFTP_Attributes
SFTP_Attributes(sftp_attributes attributes)
Definition
SFTP_Attributes.h:20
joedb::ssh::SFTP_Attributes::get
sftp_attributes get() const
Definition
SFTP_Attributes.h:25
JOEDB_RELEASE_ASSERT
#define JOEDB_RELEASE_ASSERT(x)
always-tested assertion (release and debug mode)
Definition
assert.h:24
joedb
Definition
Blob.h:7
Generated by
1.9.8