Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

NewSimulatorTextBuffer Class Reference

Wrapper class for SaHpiTextBufferT. More...

#include <new_sim_text_buffer.h>

List of all members.

Public Member Functions

 NewSimulatorTextBuffer ()
 Constructor.
 NewSimulatorTextBuffer (const char *string, SaHpiTextTypeT type, SaHpiLanguageT l=SAHPI_LANG_ENGLISH)
 full qualified constructor
 NewSimulatorTextBuffer (const SaHpiTextBufferT &buf)
 full qualified constructor
void Clear ()
 Clear the internal m_buffer and set it to default values.
 operator SaHpiTextBufferT () const
 return the internal buffer
SaHpiUint8T DataLength () const
 return the DataLength
SaHpiTextTypeT CheckAscii (const char *s)
 Return the type of the string.
bool SetAscii (const char *string, SaHpiTextTypeT type, SaHpiLanguageT l=SAHPI_LANG_ENGLISH)
 Set the value internally on ASCII.
bool SetData (SaHpiTextBufferT data)
 Fill m_buffer.
int GetAscii (char *buffer, unsigned int len) const
 Fill the an Ascii buffer with the internal value.
bool operator== (const NewSimulatorTextBuffer &tb) const
 Comparison equal operator.
bool operator!= (const NewSimulatorTextBuffer &tb) const
 Comparison not equal operator.

Protected Member Functions

int BinaryToAscii (char *buffer, unsigned int len) const
 Copy the internal buffer into a Ascii buffer.
int BcdPlusToAscii (char *buffer, unsigned int len) const
 Copy the internal buffer into a Ascii buffer.
int Ascii6ToAscii (char *buffer, unsigned int len) const
 Copy the internal buffer into a Ascii buffer.
int LanguageToAscii (char *buffer, unsigned int len) const
 Copy the internal buffer into a Ascii buffer Only SAHPI_LANG_ENGLISH is supported.
int AsciiToBcdPlus (const char *input)
 Convert an ascii string to BCDPLUS.
int AsciiToAscii6 (const char *input)
 Convert an ascii string to ascii6.
int AsciiToLanguage (const char *input)
 Copy an ascii string into the internal structure.

Protected Attributes

SaHpiTextBufferT m_buffer
 internal SaHpiTextBufferT variable


Detailed Description

Wrapper class for SaHpiTextBufferT.


Member Function Documentation

int NewSimulatorTextBuffer::Ascii6ToAscii char *  buffer,
unsigned int  len
const [protected]
 

Copy the internal buffer into a Ascii buffer.

Parameters:
buffer pointer to Ascii buffer to be filled
len length of buffer
Returns:
length

int NewSimulatorTextBuffer::AsciiToAscii6 const char *  s  )  [protected]
 

Convert an ascii string to ascii6.

Parameters:
s pointer on the string
Returns:
DataLength after conversion

int NewSimulatorTextBuffer::AsciiToBcdPlus const char *  s  )  [protected]
 

Convert an ascii string to BCDPLUS.

Parameters:
s pointer on the string
Returns:
DataLength after conversion

int NewSimulatorTextBuffer::AsciiToLanguage const char *  s  )  [protected]
 

Copy an ascii string into the internal structure.

Parameters:
s pointer on the string
Returns:
DataLength

int NewSimulatorTextBuffer::BcdPlusToAscii char *  buffer,
unsigned int  len
const [protected]
 

Copy the internal buffer into a Ascii buffer.

Parameters:
buffer pointer to Ascii buffer to be filled
len length of buffer
Returns:
length

int NewSimulatorTextBuffer::BinaryToAscii char *  buffer,
unsigned int  len
const [protected]
 

Copy the internal buffer into a Ascii buffer.

Parameters:
buffer pointer on Ascii buffer to be filled
len length of buffer
Returns:
length

SaHpiTextTypeT NewSimulatorTextBuffer::CheckAscii const char *  s  ) 
 

Return the type of the string.

Parameters:
s pointer on the string
Returns:
type of string

int NewSimulatorTextBuffer::GetAscii char *  buffer,
unsigned int  len
const
 

Fill the an Ascii buffer with the internal value.

Parameters:
buffer pointer to Ascii buffer to be filled
len length of buffer
Returns:
length

int NewSimulatorTextBuffer::LanguageToAscii char *  buffer,
unsigned int  len
const [protected]
 

Copy the internal buffer into a Ascii buffer Only SAHPI_LANG_ENGLISH is supported.

Parameters:
buffer pointer to Ascii buffer to be filled
len length of buffer
Returns:
length

bool NewSimulatorTextBuffer::SetAscii const char *  string,
SaHpiTextTypeT  type,
SaHpiLanguageT  l = SAHPI_LANG_ENGLISH
 

Set the value internally on ASCII.

Parameters:
string pointer on the string
type SaHpiTextTypeT value
l language value
Returns:
DataLength

bool NewSimulatorTextBuffer::SetData SaHpiTextBufferT  data  ) 
 

Fill m_buffer.

Parameters:
data SaHpiTextBufferT record to set internally
Returns:
true


The documentation for this class was generated from the following files:
Generated on Mon Apr 26 14:39:48 2010 for New Simulator by  doxygen 1.4.4