#include <vidl2_image_list_ostream.h>
Inheritance diagram for vidl2_image_list_ostream:

Definition at line 18 of file vidl2_image_list_ostream.h.
Public Member Functions | |
| vidl2_image_list_ostream () | |
| Constructor. | |
| vidl2_image_list_ostream (const vcl_string &directory, const vcl_string &name_format="%05d", const vcl_string &file_format="tiff", const unsigned int init_index=0) | |
| Constructor - opens a stream. | |
| virtual | ~vidl2_image_list_ostream () |
| Destructor. | |
| virtual bool | open (const vcl_string &directory, const vcl_string &name_format="%05d", const vcl_string &file_format="tiff", const unsigned int init_index=0) |
| Open the stream. | |
| virtual void | close () |
| Close the stream. | |
| virtual bool | is_open () const |
| Return true if the stream is open for writing. | |
| unsigned int | index () const |
| Return the current index. | |
| virtual vcl_string | next_file_name () const |
| Return the next file name to be written to. | |
| virtual bool | write_frame (const vidl2_frame_sptr &frame) |
| Write and image to the stream. | |
| void | ref () |
| Increment reference count. | |
| void | unref () |
| Decrement reference count. | |
| int | ref_count () const |
| Number of objects referring to this data. | |
Private Attributes | |
| unsigned int | index_ |
| The current index. | |
| vcl_string | dir_ |
| The directory to save images in. | |
| vcl_string | name_format_ |
| The printf-style format string for filenames. | |
| vcl_string | file_format_ |
| The image file format to use. | |
| vidl2_image_list_ostream::vidl2_image_list_ostream | ( | ) |
| vidl2_image_list_ostream::vidl2_image_list_ostream | ( | const vcl_string & | directory, | |
| const vcl_string & | name_format = "%05d", |
|||
| const vcl_string & | file_format = "tiff", |
|||
| const unsigned int | init_index = 0 | |||
| ) |
| virtual vidl2_image_list_ostream::~vidl2_image_list_ostream | ( | ) | [inline, virtual] |
| bool vidl2_image_list_ostream::open | ( | const vcl_string & | directory, | |
| const vcl_string & | name_format = "%05d", |
|||
| const vcl_string & | file_format = "tiff", |
|||
| const unsigned int | init_index = 0 | |||
| ) | [virtual] |
| void vidl2_image_list_ostream::close | ( | ) | [virtual] |
Close the stream.
Implements vidl2_ostream.
Definition at line 87 of file vidl2_image_list_ostream.cxx.
| bool vidl2_image_list_ostream::is_open | ( | ) | const [virtual] |
Return true if the stream is open for writing.
Implements vidl2_ostream.
Definition at line 99 of file vidl2_image_list_ostream.cxx.
| unsigned int vidl2_image_list_ostream::index | ( | ) | const [inline] |
| vcl_string vidl2_image_list_ostream::next_file_name | ( | ) | const [virtual] |
Return the next file name to be written to.
Definition at line 108 of file vidl2_image_list_ostream.cxx.
| bool vidl2_image_list_ostream::write_frame | ( | const vidl2_frame_sptr & | frame | ) | [virtual] |
Write and image to the stream.
| false | if the image could not be written |
Implements vidl2_ostream.
Definition at line 120 of file vidl2_image_list_ostream.cxx.
| void vidl2_ostream::ref | ( | ) | [inline, inherited] |
| void vidl2_ostream::unref | ( | ) | [inline, inherited] |
| int vidl2_ostream::ref_count | ( | ) | const [inline, inherited] |
unsigned int vidl2_image_list_ostream::index_ [private] |
vcl_string vidl2_image_list_ostream::dir_ [private] |
vcl_string vidl2_image_list_ostream::name_format_ [private] |
The printf-style format string for filenames.
Definition at line 64 of file vidl2_image_list_ostream.h.
vcl_string vidl2_image_list_ostream::file_format_ [private] |
1.5.1