#include <winstl/clipboard/clipboard_format_sequence.hpp>
The class enables the formats currently available on the clipboard to be enumerated, as shown in the following example:
winstl::clipboard_format_sequence fmt; std::copy(fmt.begin(), fmt.end() , stlsoft::ostream_iterator<UINT>(std::cout, "\t", "\n"));
On the system on which this documentation was written, this printed the following:
1 16 7 13
which are CF_TEXT
, CF_LOCALE
, CF_OEMTEXT
, and CF_UNICODETEXT
.
Public Types | |
Member Types | |
typedef clipboard_format_sequence | class_type |
The type. | |
typedef UINT | value_type |
The value type. | |
typedef size_t | size_type |
The size type. | |
typedef ws_ptrdiff_t | difference_type |
The difference type. | |
Public Member Functions | |
Construction | |
clipboard_format_sequence () | |
Constructs a sequence object, attempting to open the clipboard. | |
~clipboard_format_sequence () throw () | |
Release any resources aquired. | |
Iteration | |
const_iterator | begin () const |
Begins the iteration. | |
const_iterator | end () const |
Ends the iteration. | |
bool | empty () const |
Indicates whether the search sequence is empty. | |
size_type | size () const |
Returns the number of elements in the sequence. | |
bool | inaccessible () const |
Indicates whether the search sequence is valid. | |
Classes | |
class | const_iterator |
Non-mutating iterator class. More... |
typedef clipboard_format_sequence class_type |
The type.
typedef UINT value_type |
The value type.
typedef size_t size_type |
The size type.
typedef ws_ptrdiff_t difference_type |
The difference type.
clipboard_format_sequence | ( | ) | [inline] |
Constructs a sequence object, attempting to open the clipboard.
~clipboard_format_sequence | ( | ) | throw () [inline] |
Release any resources aquired.
const_iterator begin | ( | ) | const [inline] |
Begins the iteration.
const_iterator end | ( | ) | const [inline] |
Ends the iteration.
bool empty | ( | ) | const [inline] |
Indicates whether the search sequence is empty.
size_type size | ( | ) | const [inline] |
Returns the number of elements in the sequence.
bool inaccessible | ( | ) | const [inline] |
Indicates whether the search sequence is valid.