AJA NTV2 SDK  17.0.1.1246
NTV2 SDK 17.0.1.1246
NTV2Dictionary Class Reference

A simple set of zero or more key/value pairs. (New in SDK 16.3) More...

#include <ntv2nubaccess.h>

Public Member Functions

Inquiry
std::string valueForKey (const std::string &inKey) const
 
uint16_t u16ValueForKey (const std::string &inKey, const uint16_t inDefault=0) const
 
NTV2StringSet keys (void) const
 
size_t largestKeySize (void) const
 
size_t largestValueSize (void) const
 
std::ostream & Print (std::ostream &oss, const bool inCompact=true) const
 Prints human-readable representation to ostream. More...
 
Changing
size_t UpdateFrom (const NTV2Dictionary &inDict)
 Updates all values from inDict with matching keys, ignoring all non-matching keys. More...
 
size_t AddFrom (const NTV2Dictionary &inDict)
 Adds all values from inDict with non-matching keys, ignoring all matching keys. More...
 

Protected Types

typedef std::map< std::string, std::string > Dict
 
typedef Dict::const_iterator DictConstIter
 

Detailed Description

A simple set of zero or more key/value pairs. (New in SDK 16.3)

Definition at line 44 of file ntv2nubaccess.h.

Member Typedef Documentation

◆ Dict

typedef std::map<std::string, std::string> NTV2Dictionary::Dict
protected

Definition at line 74 of file ntv2nubaccess.h.

◆ DictConstIter

typedef Dict::const_iterator NTV2Dictionary::DictConstIter
protected

Definition at line 75 of file ntv2nubaccess.h.

Member Function Documentation

◆ AddFrom()

size_t NTV2Dictionary::AddFrom ( const NTV2Dictionary inDict)

Adds all values from inDict with non-matching keys, ignoring all matching keys.

Definition at line 160 of file ntv2nubaccess.cpp.

◆ keys()

NTV2StringSet NTV2Dictionary::keys ( void  ) const
Returns
My keys

Definition at line 125 of file ntv2nubaccess.cpp.

◆ largestKeySize()

size_t NTV2Dictionary::largestKeySize ( void  ) const
Returns
The length of my largest key, in bytes

Definition at line 133 of file ntv2nubaccess.cpp.

◆ largestValueSize()

size_t NTV2Dictionary::largestValueSize ( void  ) const
Returns
The length of my largest value, in bytes

Definition at line 142 of file ntv2nubaccess.cpp.

◆ Print()

ostream & NTV2Dictionary::Print ( std::ostream &  oss,
const bool  inCompact = true 
) const

Prints human-readable representation to ostream.

Definition at line 98 of file ntv2nubaccess.cpp.

◆ u16ValueForKey()

uint16_t NTV2Dictionary::u16ValueForKey ( const std::string &  inKey,
const uint16_t  inDefault = 0 
) const
Returns
The corresponding uint16_t value for the given key, or inDefault if no such key

Definition at line 62 of file ntv2nubaccess.cpp.

◆ UpdateFrom()

size_t NTV2Dictionary::UpdateFrom ( const NTV2Dictionary inDict)

Updates all values from inDict with matching keys, ignoring all non-matching keys.

Definition at line 151 of file ntv2nubaccess.cpp.

◆ valueForKey()

string NTV2Dictionary::valueForKey ( const std::string &  inKey) const
Returns
The corresponding value for the given key, or empty string if no such key

Definition at line 54 of file ntv2nubaccess.cpp.


The documentation for this class was generated from the following files: