Class to create and access system pipes (named or unnamed)
More...
#include <Pipe.h>
List of all members.
Public Member Functions |
| Pipe () |
| Constructor.
|
| Pipe (const Pipe &cSource) |
| Copy constructor.
|
| ~Pipe () |
| Destructor.
|
Pipe & | operator= (const Pipe &cSource) |
| Assignment operator.
|
bool | operator== (const Pipe &cSource) const |
| Comparison operator.
|
bool | operator!= (const Pipe &cSource) const |
| Comparison operator.
|
PLCORE_API bool | Create () |
| Creates a new unnamend pipe.
|
PLCORE_API bool | Create (const String &sName) |
| Creates a new namend pipe.
|
bool | Open (handle hRead, handle hWrite) |
| Open a pipe by file handles.
|
PLCORE_API bool | CloseRead () |
| Close read side of the pipe.
|
PLCORE_API bool | CloseWrite () |
| Close write side of the pipe.
|
bool | Close () |
| Close both sides of the pipe.
|
String | GetName () const |
| Get name of pipe.
|
handle | GetReadHandle () const |
| Get read handle for the pipe.
|
handle | GetWriteHandle () const |
| Get write handle for the pipe.
|
Detailed Description
Class to create and access system pipes (named or unnamed)
Constructor & Destructor Documentation
Copy constructor.
- Parameters:
-
[in] | cSource | Source to copy |
Member Function Documentation
Pipe & PLCore::Pipe::operator= |
( |
const Pipe & |
cSource | ) |
[inline] |
Assignment operator.
- Parameters:
-
[in] | cSource | Source to copy |
- Returns:
- Reference to this Pipe
bool PLCore::Pipe::operator== |
( |
const Pipe & |
cSource | ) |
const [inline] |
Comparison operator.
- Parameters:
-
[in] | cSource | Pipe to compare with |
- Returns:
- 'true', if both Pipe's are equal, else 'false'
bool PLCore::Pipe::operator!= |
( |
const Pipe & |
cSource | ) |
const [inline] |
Comparison operator.
- Parameters:
-
[in] | cSource | Pipe to compare with |
- Returns:
- 'true', if the Pipe's are different, else 'false'
Creates a new unnamend pipe.
- Returns:
- 'true', if the pipe could be created, else 'false'
Creates a new namend pipe.
- Parameters:
-
[in] | sName | Name of the pipe |
- Returns:
- 'true', if the pipe could be created, else 'false'
Open a pipe by file handles.
- Parameters:
-
[in] | hRead | Handle to the read end of the pipe |
[in] | hWrite | Handle to the write end of the pipe |
- Returns:
- 'true', if the pipe could be opened, else 'false'
Close read side of the pipe.
- Returns:
- 'true', if the read side could be closed, else 'false'
Close write side of the pipe.
- Returns:
- 'true', if the write side could be closed, else 'false'
Close both sides of the pipe.
- Returns:
- 'true', if the pipe could be closed, else 'false'
Get name of pipe.
- Returns:
- Name of the pipe
Get read handle for the pipe.
- Returns:
- Handle for the read-end of the pipe
- Note:
- On Linux, the handle is a file handle of type int
- On Windows, the handle is a file handle of type HANDLE
Get write handle for the pipe.
- Returns:
- Handle for the write-end of the pipe
- See also:
-
The documentation for this class was generated from the following files: