COSA
An Object-Oriented Platform for Arduino Programming
Debug::Variable Class Reference

#include <Debug.hh>

Collaboration diagram for Debug::Variable:
Collaboration graph

Public Member Functions

 Variable (const char *func, str_P name, void *ref, size_t size)
 
 ~Variable ()
 
void print ()
 

Protected Attributes

class Variablem_next
 Next variable. More...
 
const char * m_func
 Registered in function. More...
 
str_P m_name
 Function name. More...
 
void * m_ref
 Variable value reference. More...
 
size_t m_size
 Variable value size. More...
 

Friends

class Debug
 

Detailed Description

Debug Variable information class. Contains function, variable name, reference and size. Used by macro REGISTER(var) to allow the debug handler to display variable values, addresses, etc.

Definition at line 139 of file Debug.hh.

Constructor & Destructor Documentation

Debug::Variable::Variable ( const char *  func,
str_P  name,
void *  ref,
size_t  size 
)
inline

Construct debug variable information instance and link into debug handler list.

Definition at line 145 of file Debug.hh.

Debug::Variable::~Variable ( )
inline

Unlink debug variable information instance from debug handler list.

Definition at line 159 of file Debug.hh.

Member Function Documentation

void Debug::Variable::print ( )

Print information about variable on debug iostream device.

Definition at line 303 of file Debug.cpp.

Friends And Related Function Documentation

friend class Debug
friend

Definition at line 170 of file Debug.hh.

Member Data Documentation

const char* Debug::Variable::m_func
protected

Registered in function.

Definition at line 172 of file Debug.hh.

str_P Debug::Variable::m_name
protected

Function name.

Definition at line 173 of file Debug.hh.

class Variable* Debug::Variable::m_next
protected

Next variable.

Definition at line 171 of file Debug.hh.

void* Debug::Variable::m_ref
protected

Variable value reference.

Definition at line 174 of file Debug.hh.

size_t Debug::Variable::m_size
protected

Variable value size.

Definition at line 175 of file Debug.hh.


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