Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
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/ssh/ssh.h"
5
6#include <libssh/sftp.h>
7
8namespace joedb
9{
10 namespace ssh
11 {
12 ///////////////////////////////////////////////////////////////////////////
14 ///////////////////////////////////////////////////////////////////////////
15 {
16 private:
17 const sftp_attributes attributes;
18
19 public:
20 SFTP_Attributes(sftp_attributes attributes): attributes(attributes)
21 {
22 check_not_null(attributes);
23 }
24
25 sftp_attributes get() const
26 {
27 return attributes;
28 }
29
31 {
32 if (attributes)
33 sftp_attributes_free(attributes);
34 }
35 };
36 }
37}
38
39#endif
SFTP_Attributes(sftp_attributes attributes)
sftp_attributes get() const
void check_not_null(void *p)
Definition ssh.h:13
Definition Blob.h:7