2007-07-16 20:16:00 +00:00
|
|
|
/*
|
2007-07-25 18:53:00 +00:00
|
|
|
* $Id: StdAwk.hpp,v 1.4 2007/07/20 09:23:37 bacon Exp $
|
2007-07-16 20:16:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <ase/net/Awk.hpp>
|
|
|
|
|
|
|
|
namespace ASE
|
|
|
|
{
|
|
|
|
namespace Net
|
|
|
|
{
|
2007-07-17 20:20:00 +00:00
|
|
|
|
2007-07-25 18:53:00 +00:00
|
|
|
public ref class StdAwk abstract: public Awk
|
2007-07-16 20:16:00 +00:00
|
|
|
{
|
|
|
|
public:
|
2007-07-21 01:21:00 +00:00
|
|
|
StdAwk ();
|
|
|
|
~StdAwk ();
|
|
|
|
|
2007-07-25 18:53:00 +00:00
|
|
|
public protected:
|
|
|
|
// File
|
|
|
|
virtual int OpenFile (File^ file) override;
|
|
|
|
virtual int CloseFile (File^ file) override;
|
|
|
|
virtual int ReadFile (
|
|
|
|
File^ file, cli::array<char_t>^ buf, int len) override;
|
|
|
|
virtual int WriteFile (
|
|
|
|
File^ file, cli::array<char_t>^ buf, int len) override;
|
|
|
|
virtual int FlushFile (File^ file) override;
|
2007-07-17 20:20:00 +00:00
|
|
|
|
2007-07-25 18:53:00 +00:00
|
|
|
// Pipe
|
|
|
|
virtual int OpenPipe (Pipe^ pipe) override;
|
|
|
|
virtual int ClosePipe (Pipe^ pipe) override;
|
|
|
|
virtual int ReadPipe (
|
|
|
|
Pipe^ pipe, cli::array<char_t>^ buf, int len) override;
|
|
|
|
virtual int WritePipe (
|
|
|
|
Pipe^ pipe, cli::array<char_t>^ buf, int len) override;
|
|
|
|
virtual int FlushPipe (Pipe^ pipe) override;
|
|
|
|
};
|
2007-07-16 20:16:00 +00:00
|
|
|
}
|
2007-07-21 01:21:00 +00:00
|
|
|
}
|