GM6000 Digital Heater Controller Branch: main
SDX-1330
List of all members | Public Member Functions | Public Attributes
Cpl::Io::Descriptor Union Reference

This union defines a 'IO descriptor' in terms of a an integer and/or a void*. More...

Detailed Description

This union defines a 'IO descriptor' in terms of a an integer and/or a void*.

This allows the concrete 'Standard IO' class some flexibility in their implementation.

#include <Descriptor.h>

Public Member Functions

 Descriptor (int fd)
 fd Constructor
 
 Descriptor (void *ptr)
 handle Constructor
 
 Descriptor ()
 Default Constructor.
 

Public Attributes

union { 
 
int m_fd
 The traditional standard Posix file descriptor.
 
void * m_handlePtr
 Pointer implementation (such as FILE*)
 
};  
 Union the different possible types for a descriptor.
 

Constructor & Destructor Documentation

◆ Descriptor() [1/3]

Cpl::Io::Descriptor::Descriptor ( int  fd)
inline

fd Constructor

◆ Descriptor() [2/3]

Cpl::Io::Descriptor::Descriptor ( void *  ptr)
inline

handle Constructor

◆ Descriptor() [3/3]

Cpl::Io::Descriptor::Descriptor ( )
inline

Default Constructor.

Member Data Documentation

◆ [union]

union { ... } Cpl::Io::Descriptor

Union the different possible types for a descriptor.


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