key
|
 |
The os_key
class represents a System V Interprocess
Communication (IPC) key. This class constructs keys from either an integer value
or from a filename/value pair.
Library
Platform<ToolKit> for
UNIX
Declaration
#include <ospace/unix/key.h>
class os_key
Interface
Constructor
os_key(
os_key_t value )
Constructs an object with
value value (default OS_UNDEFINED
).
Constructor
os_key(
const os_key& key )
Constructs a copy of key
.
Constructor
os_key(
const string& filename ,
char project_code )
Constructs an object
using filename and project_code
as a seed. If filename does not exist or is
inaccessible, sets the value to OS_UNDEFINED .
Throws: os_unix_toolkit_error
<
bool
operator<( const os_key& key )
const
Returns true
if the value is less than key .
=
os_key&
operator=( const os_key& key )
Assigns an object from key
.
==
bool
operator==( const os_key& key )
const
Returns true
if the value is the same as key .
defined
bool
defined() const
Returns true
if the value is not OS_UNDEFINED .
print
void
print( ostream& stream )
const
Prints value to stream
.
value
void
value( os_key_t value )
Sets value to value
.
value
os_key_t
value() const
Returns value.
Non-Member Functions
<<
ostream&
operator<<( ostream& stream ,
const os_key& key )
Prints key
to stream .
Universal Streaming Service
#include <ospace/uss/unix.h>
<<
os_bstream&
operator<<( os_bstream& stream ,
const os_key& key )
Writes key
to stream .
>>
os_bstream&
operator>>( os_bstream& stream ,
os_key& key )
Reads key
from stream .
Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved - For use by licensed users only. - For use by licensed
users only.