#include <switch_cpp.h>
Collaboration diagram for Stream:
Public Member Functions | |
| Stream (void) | |
| Stream (switch_stream_handle_t *) | |
| virtual | ~Stream () |
| void | write (const char *data) |
| const char * | get_data (void) |
Protected Attributes | |
| switch_stream_handle_t | mystream |
| switch_stream_handle_t * | stream_p |
| int | mine |
Definition at line 140 of file switch_cpp.h.
| Stream::Stream | ( | void | ) |
Definition at line 479 of file switch_cpp.cpp.
References mine, mystream, stream_p, and SWITCH_STANDARD_STREAM.
00480 { 00481 SWITCH_STANDARD_STREAM(mystream); 00482 stream_p = &mystream; 00483 mine = 1; 00484 }
| Stream::Stream | ( | switch_stream_handle_t * | ) |
| Stream::~Stream | ( | ) | [virtual] |
Definition at line 493 of file switch_cpp.cpp.
References switch_stream_handle::data, mine, mystream, and switch_safe_free.
00494 { 00495 if (mine) { 00496 switch_safe_free(mystream.data); 00497 } 00498 }
| const char * Stream::get_data | ( | void | ) |
Definition at line 506 of file switch_cpp.cpp.
References this_check.
00507 { 00508 this_check(""); 00509 00510 return stream_p ? (const char *)stream_p->data : NULL; 00511 }
| void Stream::write | ( | const char * | data | ) |
Definition at line 500 of file switch_cpp.cpp.
References this_check_void.
00501 { 00502 this_check_void(); 00503 stream_p->write_function(stream_p, "%s", data); 00504 }
int Stream::mine [protected] |
switch_stream_handle_t Stream::mystream [protected] |
switch_stream_handle_t* Stream::stream_p [protected] |
1.4.7