-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathss_oper_file.h
More file actions
33 lines (27 loc) · 842 Bytes
/
ss_oper_file.h
File metadata and controls
33 lines (27 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/******************************************************************************
版权所有 (C), 2017-2018, xxx Co.xxx, Ltd.
******************************************************************************
文 件 名 : ss_oper_file.h
版 本 号 : V1.0
作 者 : zc
生成日期 : 2018年9月28日
功能描述 : 文件操作类
修改历史 :
******************************************************************************/
#ifndef _SS_OPER_FILE_H_
#define _SS_OPER_FILE_H_
#include <string>
/* 文件操作类 */
class SsOperFile {
public:
SsOperFile(const char *pathname, int flags, mode_t mode);
~SsOperFile();
bool is_open();
bool setFileLock(int type);
int getFileLock(int type);
const char * getErrorInfo();
private:
int m_fd;
std::string m_error;
};
#endif