fileo.h

来自「Shorthand是一个强大的脚本语言」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef __file_o_h
#define __file_o_h

#include "object.h"
#include <stdio.h>

/**
 * Shorthand FILE object
 */
class ShhFile : public ShhObject
{
protected:
    string m_name;
    string m_mode;
    string m_last_error;
    FILE* m_file;

public:
    ShhFile(ShhModule& module, const YYLTYPE& location);

    void constructor(ShhValueList* args);
    ShhValue executeMethod(const char* name, ShhValueList* args);
    bool hasMethod(const char* name);

    ~ShhFile();
};


#endif //__smtp_o_h

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?