NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
CSimpleClipboard Class Reference

Search Toolkit Book for CSimpleClipboard

#include <gui/widgets/wx/simple_clipboard.hpp>

Public Member Functions

template<typename T >
bool IsAvailable () const
 
template<typename T >
T Get () const
 
template<typename T >
void Set (const T &val)
 
void Clear ()
 
wxString MakeWxString () const
 
string MakeString () const
 !!! name is not good !!! More...
 
template<>
bool IsAvailable () const
 
template<>
wxBitmap Get () const
 
template<>
bool IsAvailable () const
 
template<>
wxFileName Get () const
 
template<>
bool IsAvailable () const
 
template<>
string Get () const
 
template<>
void Set (const string &val)
 

Static Public Member Functions

static CSimpleClipboardInstance ()
 

Private Member Functions

 CSimpleClipboard ()
 

Static Private Attributes

static unique_ptr< CSimpleClipboardm_Clipboard
 

Detailed Description

Definition at line 63 of file simple_clipboard.hpp.

Constructor & Destructor Documentation

◆ CSimpleClipboard()

CSimpleClipboard::CSimpleClipboard ( )
inlineprivate

Definition at line 113 of file simple_clipboard.hpp.

Referenced by Instance().

Member Function Documentation

◆ Clear()

void CSimpleClipboard::Clear ( void  )

Definition at line 51 of file simple_clipboard.cpp.

◆ Get() [1/4]

template<typename T >
T CSimpleClipboard::Get ( void  ) const
inline

◆ Get() [2/4]

template<>
wxBitmap CSimpleClipboard::Get ( ) const

◆ Get() [3/4]

template<>
wxFileName CSimpleClipboard::Get ( ) const

◆ Get() [4/4]

template<>
string CSimpleClipboard::Get ( void  ) const
inline

Definition at line 139 of file simple_clipboard.hpp.

References ToStdString().

◆ Instance()

CSimpleClipboard & CSimpleClipboard::Instance ( void  )
static

◆ IsAvailable() [1/4]

template<typename T >
bool CSimpleClipboard::IsAvailable ( ) const
inline

Definition at line 69 of file simple_clipboard.hpp.

References CwxClipboardHelper< T >::x_Available().

◆ IsAvailable() [2/4]

template<>
bool CSimpleClipboard::IsAvailable ( ) const

◆ IsAvailable() [3/4]

template<>
bool CSimpleClipboard::IsAvailable ( ) const

◆ IsAvailable() [4/4]

template<>
bool CSimpleClipboard::IsAvailable ( ) const
inline

Definition at line 134 of file simple_clipboard.hpp.

◆ MakeString()

string CSimpleClipboard::MakeString ( ) const
inline

!!! name is not good !!!

Definition at line 109 of file simple_clipboard.hpp.

References MakeWxString(), and ToStdString().

◆ MakeWxString()

wxString CSimpleClipboard::MakeWxString ( ) const

Definition at line 59 of file simple_clipboard.cpp.

References wxT.

Referenced by MakeString().

◆ Set() [1/2]

template<>
void CSimpleClipboard::Set ( const string val)
inline

Definition at line 184 of file simple_clipboard.hpp.

References ToWxString(), and val.

◆ Set() [2/2]

template<typename T >
void CSimpleClipboard::Set ( const T val)
inline

Member Data Documentation

◆ m_Clipboard

unique_ptr< CSimpleClipboard > CSimpleClipboard::m_Clipboard
staticprivate

Definition at line 116 of file simple_clipboard.hpp.

Referenced by Instance().


The documentation for this class was generated from the following files:
Modified on Sun Feb 25 03:05:30 2024 by modify_doxy.py rev. 669887