|
Modules | |
Back-end Utility Components | |
Utility classes and functions for use in creating custom (and stock) back-ends. | |
Defines | |
#define | PANTHEIOS_STRINGIZE(x) PANTHEIOS_STRINGIZE_(x) |
Macro for stringizing symbols during preprocessing phase. | |
#define | PANTHEIOS_DECLSPEC |
Storage class specifier to be applied to all Pantheios API functions. | |
#define | PANTHEIOS_EXTERN_C extern "C" |
Resolves to extern when compiling in C, and extern "C" when compiling in C++. | |
#define | PANTHEIOS_CALLCONV |
Calling convention specifier to be applied to all Pantheios API functions. | |
#define | PANTHEIOS_CALL(rt) PANTHEIOS_DECLSPEC PANTHEIOS_EXTERN_C rt PANTHEIOS_CALLCONV |
Used to declare and define Pantheios API functions. | |
#define | PANTHEIOS_DECLARE_DEPRECATION(symtype, oldfn, newfn) |
Used to mark an inline (C++) function as deprecated. | |
#define | PANTHEIOS_CALL_DEPRECATED(rt, oldfn, newfn) PANTHEIOS_CALL(rt) |
Used to declare an API function as deprecated. | |
Functions | |
pan_char_t * | strdup_nothrow (pan_char_t const *s) throw () |
Equivalent to pantheios_util_strdup_nothrow(). | |
void | strfree (pan_char_t *s) throw () |
Equivalent to pantheios_util_strfree(). | |
size_t | pantheios_getHostName (pan_char_t *buffer, size_t cchBuffer) |
Retrieves the host system identifier. | |
size_t | getHostName (pan_char_t *buffer, size_t cchBuffer) |
Equivalent to pantheios_getHostName(). | |
template<size_t N, typename A> | |
size_t | getHostName (stlsoft::auto_buffer< pan_char_t, A, N > &buffer) |
Retrieves the host system identifier. | |
stlsoft::ss_sint64_t | pantheios_getCurrentProcessId (void) |
Returns an identifier for the process. | |
stlsoft::ss_sint64_t | getCurrentProcessId () |
Equivalent to pantheios_getCurrentProcessId(). | |
stlsoft::ss_sint64_t | pantheios_getCurrentThreadId (void) |
Returns an identifier for the calling thread. | |
stlsoft::ss_sint64_t | getCurrentThreadId () |
Equivalent to pantheios_getCurrentThreadId(). |
#define PANTHEIOS_CALL | ( | rt | ) | PANTHEIOS_DECLSPEC PANTHEIOS_EXTERN_C rt PANTHEIOS_CALLCONV |
Used to declare and define Pantheios API functions.
#define PANTHEIOS_CALL_DEPRECATED | ( | rt, | |||
oldfn, | |||||
newfn | ) | PANTHEIOS_CALL(rt) |
Used to declare an API function as deprecated.
#define PANTHEIOS_CALLCONV |
Calling convention specifier to be applied to all Pantheios API functions.
Used in the PANTHEIOS_CALL() macro.
#define PANTHEIOS_DECLARE_DEPRECATION | ( | symtype, | |||
oldfn, | |||||
newfn | ) |
Used to mark an inline (C++) function as deprecated.
#define PANTHEIOS_DECLSPEC |
Storage class specifier to be applied to all Pantheios API functions.
Defaults to no symbol. Can be defined to a symbol appropriate to the operating system and linkage model. e.g. on Windows you might choose to define it to __declspec(dllexport)
when building Pantheios and to __declspec(dllimport)
in client code using Pantheios.
Used in the PANTHEIOS_CALL() macro.
#define PANTHEIOS_EXTERN_C extern "C" |
Resolves to extern
when compiling in C, and extern "C"
when compiling in C++.
Used in the PANTHEIOS_CALL() macro.
#define PANTHEIOS_STRINGIZE | ( | x | ) | PANTHEIOS_STRINGIZE_(x) |
Macro for stringizing symbols during preprocessing phase.
x | The preprocessor symbol whose value will be turned into a string |
stlsoft:: ss_sint64_t pantheios::util::getCurrentProcessId | ( | ) | [inline] |
Equivalent to pantheios_getCurrentProcessId().
stlsoft:: ss_sint64_t pantheios::util::getCurrentThreadId | ( | ) | [inline] |
Equivalent to pantheios_getCurrentThreadId().
size_t pantheios::getHostName | ( | stlsoft::auto_buffer< pan_char_t, A, N > & | buffer | ) | [inline] |
Retrieves the host system identifier.
buffer | A mutable (non-const) reference to an instance of a specialisation of stlsoft::auto_buffer in which the elicited host-name will be written, including terminating nul-character |
size_t pantheios::getHostName | ( | pan_char_t * | buffer, | |
size_t | cchBuffer | |||
) | [inline] |
Equivalent to pantheios_getHostName().
stlsoft:: ss_sint64_t pantheios::pantheios_getCurrentProcessId | ( | void | ) |
Returns an identifier for the process.
stlsoft:: ss_sint64_t pantheios::pantheios_getCurrentThreadId | ( | void | ) |
Returns an identifier for the calling thread.
size_t pantheios::pantheios_getHostName | ( | pan_char_t * | buffer, | |
size_t | cchBuffer | |||
) |
Retrieves the host system identifier.
buffer | Pointer to a character buffer to receive a copy of the host name. May not be NULL unless cchBuffer is 0 | |
cchBuffer | Number of characters available in buffer . Must include the space for a terminating nul. |
0 | The host name was unavailable. (For those builds for which exceptions are not supported, this will include out-of-memory conditions.) | |
cchBuffer | There was insufficient space to copy the host name into the buffer. The host name is not copied into the buffer. |
gethostname()
function. Since the function is intended to be mostly used, via the C++ wrapper, from the pantheios::hostId inserter class, the inconvenience is deemed acceptable. pan_char_t* pantheios::util::strdup_nothrow | ( | pan_char_t const * | s | ) | throw () [inline] |
void pantheios::util::strfree | ( | pan_char_t * | s | ) | throw () [inline] |
|
|
pantheios Library documentation © Matthew Wilson & Synesis Software, 2006-2011 |