2021-06-24 20:43:09 +08:00
|
|
|
#ifndef STDINCOMPILER_H
|
|
|
|
#define STDINCOMPILER_H
|
|
|
|
|
|
|
|
#include "compiler.h"
|
|
|
|
|
|
|
|
class StdinCompiler : public Compiler
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2021-09-03 21:06:53 +08:00
|
|
|
explicit StdinCompiler(const QString& filename, const QString& content, bool isAscii, bool silent,bool onlyCheckSyntax);
|
2021-06-24 20:43:09 +08:00
|
|
|
|
|
|
|
// Compiler interface
|
|
|
|
protected:
|
|
|
|
bool prepareForCompile() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString mContent;
|
2021-09-03 21:06:53 +08:00
|
|
|
bool mIsAscii;
|
2021-06-24 20:43:09 +08:00
|
|
|
|
|
|
|
// Compiler interface
|
|
|
|
protected:
|
2021-06-25 12:40:11 +08:00
|
|
|
QString pipedText() override;
|
|
|
|
|
|
|
|
// Compiler interface
|
|
|
|
protected:
|
|
|
|
bool prepareForRebuild() override;
|
2021-06-24 20:43:09 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // STDINCOMPILER_H
|