NexusCPP  3.5.0
Public Member Functions | List of all members
nxcpp::NexusAttr Class Reference

#include <nxfile.h>

Inheritance diagram for nxcpp::NexusAttr:
Inheritance graph
[legend]
Collaboration diagram for nxcpp::NexusAttr:
Collaboration graph
[legend]

Public Member Functions

 NexusAttr (const std::string &strName)
 
 NexusAttr (const NexusAttr &aAttr)
 Copy c-tor. More...
 
 ~NexusAttr ()
 
void SetLong (long lValue)
 Sets a value of type 'long'. More...
 
void SetCString (const char *pcszValue)
 
void SetString (const std::string &strValue)
 
void SetDouble (double dValue)
 
void SetFloat (float fValue)
 
long GetLong () const
 Get 'long' type value. More...
 
double GetDouble () const
 Gets 'double' type value. More...
 
float GetFloat () const
 Gets 'float' type value. More...
 
std::string GetString () const
 Gets 'std::string' type value. More...
 
void * RawValue () const
 Returns the attr buffer. More...
 
- Public Member Functions inherited from nxcpp::NexusAttrInfo
 NexusAttrInfo ()
 Constructor. More...
 
 ~NexusAttrInfo ()
 Destructor. More...
 
const char * AttrName () const
 Accessors. More...
 
int Len () const
 Returns len of attribute. More...
 
NexusDataType DataType () const
 Returns type attribute data. More...
 

Additional Inherited Members

- Protected Attributes inherited from nxcpp::NexusAttrInfo
char * m_pszName
 
int m_iLen
 
NexusDataType m_eDataType
 
void * m_pContext
 

Detailed Description

NeXus Attribute

This class is used to store info about founded attributes while browsing a group level

Constructor & Destructor Documentation

◆ NexusAttr() [1/2]

nxcpp::NexusAttr::NexusAttr ( const std::string &  strName)

c-tor

Parameters
strNameattribute name

◆ NexusAttr() [2/2]

nxcpp::NexusAttr::NexusAttr ( const NexusAttr aAttr)

Copy c-tor.

◆ ~NexusAttr()

nxcpp::NexusAttr::~NexusAttr ( )

Member Function Documentation

◆ GetDouble()

double nxcpp::NexusAttr::GetDouble ( ) const

Gets 'double' type value.

◆ GetFloat()

float nxcpp::NexusAttr::GetFloat ( ) const

Gets 'float' type value.

◆ GetLong()

long nxcpp::NexusAttr::GetLong ( ) const

Get 'long' type value.

◆ GetString()

std::string nxcpp::NexusAttr::GetString ( ) const

Gets 'std::string' type value.

◆ RawValue()

void* nxcpp::NexusAttr::RawValue ( ) const

Returns the attr buffer.

◆ SetCString()

void nxcpp::NexusAttr::SetCString ( const char *  pcszValue)

Sets a value of type

Parameters
pcszValueC-style string attribute value

◆ SetDouble()

void nxcpp::NexusAttr::SetDouble ( double  dValue)

Sets a value of type 'double'

Parameters
dValueattribute value

◆ SetFloat()

void nxcpp::NexusAttr::SetFloat ( float  fValue)

Sets a value of type 'float'

Parameters
fValueattribute value

◆ SetLong()

void nxcpp::NexusAttr::SetLong ( long  lValue)

Sets a value of type 'long'.

◆ SetString()

void nxcpp::NexusAttr::SetString ( const std::string &  strValue)

Sets a value of type 'STL std::string'

Parameters
strValueattribute value

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