PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
happyhttp::Wobbly Class Reference

#include <happyhttp.h>

Public Member Functions

 Wobbly (const char *fmt,...)
 
const char * what () const
 

Protected Types

enum  { MAXLEN =256 }
 

Protected Attributes

char m_Message [MAXLEN]
 

Detailed Description

Definition at line 125 of file happyhttp.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
MAXLEN 

Definition at line 132 of file happyhttp.h.

132{ MAXLEN=256 };

Constructor & Destructor Documentation

◆ Wobbly()

happyhttp::Wobbly::Wobbly ( const char *  fmt,
  ... 
)

Definition at line 207 of file happyhttp.cpp.

208{
209 va_list ap;
210 va_start( ap,fmt);
211 int n = vsnprintf( m_Message, MAXLEN, fmt, ap );
212 va_end( ap );
213 if(n==MAXLEN)
214 m_Message[MAXLEN-1] = '\0';
215}
char m_Message[MAXLEN]
Definition happyhttp.h:133

References m_Message, and MAXLEN.

Member Function Documentation

◆ what()

const char * happyhttp::Wobbly::what ( ) const
inline

Definition at line 129 of file happyhttp.h.

130 { return m_Message; }

References m_Message.

Referenced by main().

Member Data Documentation

◆ m_Message

char happyhttp::Wobbly::m_Message[MAXLEN]
protected

Definition at line 133 of file happyhttp.h.

Referenced by what(), and Wobbly().


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