Into

Modules

Documentation

classPiiNameValuePair

#include <PiiNameValuePair.h>

A template that wraps a name and a value into a pair.

Description

XML serialization has special use for the name, other implementations typically ignore it.

Constructors and destructor

(
  • const char * n
  • const T & v
)

Create a new serialization wrapper for the given value.

Public member functions

template<class Archive>
void
(
  • Archive & archive
  • const unsigned int
)
template<class T>
(
  • const char * name
  • const T & value
)

Create a PiiNameValuePair wrapper for a type automatically determined by the value parameter.

Function details

  • PiiNameValuePair

    (
    • const char * n
    • const T & v
    )
    [inline]

    Create a new serialization wrapper for the given value.

    Parameters
    n

    name

    v

    data

  • template<class Archive>

    void serialize

    (
    • Archive & archive
    • const unsigned int
    )
    [inline]
  • template<class T>

    PiiNameValuePair< T > makeNvp

    (
    • const char * name
    • const T & value
    )
    [inline]

    Create a PiiNameValuePair wrapper for a type automatically determined by the value parameter.

    Parameters
    name

    the name of the variable

    value

    the value

Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.