nx_server_plugin_sdk 1.0 Server Plugin SDK

Classes | Namespaces | Enumerations | Functions
plugin_tools.h File Reference
`#include <cerrno>`
`#include <cstdlib>`
`#include <cstring>`
`#include <iomanip>`
`#include <limits>`
`#include <sstream>`
`#include <type_traits>`
`#include "plugin_api.h"`

Go to the source code of this file.

## Classes
class | nxpt::CommonRefManager
class | nxpt::CommonRefCounter< T >
class | nxpt::NxGuidHelper
struct | std::hash< nxpl::NX_GUID >

## Namespaces
| nxpl
| VMS dynamic plugin API (c++)

## Enumerations
enum | NxGuidFormatOption { uppercase = 0x1, hyphens = 0x2, braces = 0x4, applyAll = uppercase | hyphens | braces }

## Functions
static AtomicLong | nxpt::atomic::inc (AtomicLong *val)
static AtomicLong | nxpt::atomic::dec (AtomicLong *val)
template<typename RefCountableInterface >
int | nxpt::refCount (const nxpl::PluginInterface *object)
static std::string | nxpt::toStdString (const nxpl::NX_GUID &guid, unsigned int format=NxGuidFormatOption::applyAll)
bool | nxpl::operator== (const nxpl::NX_GUID &id1, const nxpl::NX_GUID &id2)
std::ostream & | nxpl::operator<< (std::ostream &os, const nxpl::NX_GUID &id)

## Detailed Description

Various tools for plugins. Header-only.

## Function Documentation

## ◆ dec()

static AtomicLong nxpt::atomic::dec | ( | AtomicLong * | val | ) |
| static

Decrements *val, returns the new (decremented) value.

## ◆ inc()

static AtomicLong nxpt::atomic::inc | ( | AtomicLong * | val | ) |
| static

Increments *val, returns the new (incremented) value.

## ◆ refCount()

template<typename RefCountableInterface >

int nxpt::refCount | ( | const nxpl::PluginInterface * | object | ) |

Intended for debug. Is not thread-safe.

Returns
  Reference counter, or 0 if the pointer is null.