foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
pfc::print_guid

#include <guid.h>

Public Member Functions

 print_guid (const GUID &p_guid)
 
const char * get_ptr ()
 
 operator const char * () const
 

Private Attributes

char m_data [64]
 

Detailed Description

Definition at line 8 of file guid.h.

Constructor & Destructor Documentation

pfc::print_guid::print_guid ( const GUID p_guid)

Definition at line 130 of file guid.cpp.

131 {
132  char * out = m_data;
133  print_hex(p_guid.Data1,out,4);
134  *(out++) = '-';
135  print_hex(p_guid.Data2,out,2);
136  *(out++) = '-';
137  print_hex(p_guid.Data3,out,2);
138  *(out++) = '-';
139  print_hex(p_guid.Data4[0],out,1);
140  print_hex(p_guid.Data4[1],out,1);
141  *(out++) = '-';
142  print_hex(p_guid.Data4[2],out,1);
143  print_hex(p_guid.Data4[3],out,1);
144  print_hex(p_guid.Data4[4],out,1);
145  print_hex(p_guid.Data4[5],out,1);
146  print_hex(p_guid.Data4[6],out,1);
147  print_hex(p_guid.Data4[7],out,1);
148  *out = 0;
149 }
uint8_t Data4[8]
Definition: pfc.h:75
static void print_hex(unsigned val, char *&out, unsigned bytes)
Definition: guid.cpp:117
uint16_t Data3
Definition: pfc.h:74
char m_data[64]
Definition: guid.h:15
uint16_t Data2
Definition: pfc.h:73
uint32_t Data1
Definition: pfc.h:72

Member Function Documentation

const char* pfc::print_guid::get_ptr ( )
inline

Definition at line 13 of file guid.h.

13 {return m_data;}
char m_data[64]
Definition: guid.h:15
pfc::print_guid::operator const char * ( ) const
inline

Definition at line 12 of file guid.h.

12 {return m_data;}
char m_data[64]
Definition: guid.h:15

Field Documentation

char pfc::print_guid::m_data[64]
private

Definition at line 15 of file guid.h.


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