libpniio
Public Types | Public Member Functions
pni::io::nx::close_visitor< GTYPE, FTYPE, ATYPE, LTYPE > Class Template Reference

close an object More...

#include <close.hpp>

Inheritance diagram for pni::io::nx::close_visitor< GTYPE, FTYPE, ATYPE, LTYPE >:
Inheritance graph
[legend]
Collaboration diagram for pni::io::nx::close_visitor< GTYPE, FTYPE, ATYPE, LTYPE >:
Collaboration graph
[legend]

Public Types

using result_type = void
 result type (bool) More...
 
using group_type = GTYPE
 Nexus group type. More...
 
using field_type = FTYPE
 Nexus field type. More...
 
using attribute_type = ATYPE
 Nexus attribute type. More...
 
using link_type = LTYPE
 link type More...
 

Public Member Functions

void operator() (group_type &g) const
 process group instances More...
 
void operator() (field_type &f) const
 process field instances More...
 
void operator() (attribute_type &a) const
 process attribute instances More...
 
void operator() (const link_type &) const
 process a link instance More...
 

Detailed Description

template<typename GTYPE, typename FTYPE, typename ATYPE, typename LTYPE>
class pni::io::nx::close_visitor< GTYPE, FTYPE, ATYPE, LTYPE >

This visitor closes an open stored in an instance of nxobject.

Template Parameters
GTYPEgroup type
FTYPEfield type
ATYPEattribute type
LTYPElink type

Member Typedef Documentation

template<typename GTYPE , typename FTYPE , typename ATYPE , typename LTYPE >
using pni::io::nx::close_visitor< GTYPE, FTYPE, ATYPE, LTYPE >::attribute_type = ATYPE
template<typename GTYPE , typename FTYPE , typename ATYPE , typename LTYPE >
using pni::io::nx::close_visitor< GTYPE, FTYPE, ATYPE, LTYPE >::field_type = FTYPE
template<typename GTYPE , typename FTYPE , typename ATYPE , typename LTYPE >
using pni::io::nx::close_visitor< GTYPE, FTYPE, ATYPE, LTYPE >::group_type = GTYPE
template<typename GTYPE , typename FTYPE , typename ATYPE , typename LTYPE >
using pni::io::nx::close_visitor< GTYPE, FTYPE, ATYPE, LTYPE >::link_type = LTYPE
template<typename GTYPE , typename FTYPE , typename ATYPE , typename LTYPE >
using pni::io::nx::close_visitor< GTYPE, FTYPE, ATYPE, LTYPE >::result_type = void

Member Function Documentation

template<typename GTYPE , typename FTYPE , typename ATYPE , typename LTYPE >
void pni::io::nx::close_visitor< GTYPE, FTYPE, ATYPE, LTYPE >::operator() ( group_type g) const
inline

Close the group.

Exceptions
object_errorin case closing the group fails
type_errorif internal object type could not be determined
Parameters
greference to group instance
Returns
false
template<typename GTYPE , typename FTYPE , typename ATYPE , typename LTYPE >
void pni::io::nx::close_visitor< GTYPE, FTYPE, ATYPE, LTYPE >::operator() ( field_type f) const
inline

Close the field.

Exceptions
object_errorin case closing the field fails
type_errorif internal object type could not be determined
Parameters
freference to field instance
Returns
true
template<typename GTYPE , typename FTYPE , typename ATYPE , typename LTYPE >
void pni::io::nx::close_visitor< GTYPE, FTYPE, ATYPE, LTYPE >::operator() ( attribute_type a) const
inline

Close the attribute.

Exceptions
object_errorin case closing the attribute fails
type_errorif internal object type could not be determined
Parameters
areference to attribute instance
Returns
false
template<typename GTYPE , typename FTYPE , typename ATYPE , typename LTYPE >
void pni::io::nx::close_visitor< GTYPE, FTYPE, ATYPE, LTYPE >::operator() ( const link_type ) const
inline

There is nothing we have to do here.


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