|
winss
|
Pipe names are based on file system paths. More...
#include <pipe_name.hpp>
Public Member Functions | |
| PipeName (fs::path path) | |
| Creates a standard pipe name based on only a path. More... | |
| PipeName (fs::path path, std::string name) | |
| Creates a standard pipe name based on a path and service name. More... | |
| PipeName (const PipeName &p) | |
| Create a new path based on another path. More... | |
| PipeName (PipeName &&p) | |
| Create a new path based on another path. More... | |
| PipeName | Append (const std::string &name) const |
| Append an additional name to the current pipe. More... | |
| const std::string & | Get () const |
| Gets the pipe name as a string. More... | |
| PipeName & | operator= (const PipeName &p) |
| Copy another pipe name to this pipe name. More... | |
| PipeName & | operator= (PipeName &&p) |
| Move another pipe name to this pipe name. More... | |
Protected Member Functions | |
| PipeName () | |
| The final pipe name. More... | |
Protected Attributes | |
| std::string | name |
Pipe names are based on file system paths.
This ensures that all pipes are created with a name that is in the same format.
|
inlineprotected |
The final pipe name.
Avoid public access to empty pipe name.
References Append(), Get(), and operator=().
|
explicit |
Creates a standard pipe name based on only a path.
| path | The file system path. |
References winss::SHA256::CalculateDigest(), FILESYSTEM, and name.
| winss::PipeName::PipeName | ( | fs::path | path, |
| std::string | name | ||
| ) |
Creates a standard pipe name based on a path and service name.
| path | The file system path. |
| name | The name of the service at the path. |
References name.
| winss::PipeName::PipeName | ( | const PipeName & | p | ) |
Create a new path based on another path.
| p | The path to copy from. |
| winss::PipeName::PipeName | ( | winss::PipeName && | p | ) |
Create a new path based on another path.
| p | The path to move from. |
| winss::PipeName winss::PipeName::Append | ( | const std::string & | name | ) | const |
Append an additional name to the current pipe.
| name | The name to append. |
References name.
Referenced by PipeName().
| const std::string & winss::PipeName::Get | ( | ) | const |
Gets the pipe name as a string.
References name.
Referenced by winss::PipeInstance::CreateFile(), winss::PipeInstance::CreateNamedPipe(), and PipeName().
| winss::PipeName & winss::PipeName::operator= | ( | const PipeName & | p | ) |
Copy another pipe name to this pipe name.
| p | The other pipe name. |
References name.
Referenced by PipeName().
| winss::PipeName & winss::PipeName::operator= | ( | winss::PipeName && | p | ) |
Move another pipe name to this pipe name.
| p | The other pipe name. |
References name.
|
protected |
Referenced by Append(), Get(), operator=(), and PipeName().
1.8.11