utils::InterfaceEntry< T > Class Template Reference

Every InterfaceEntry stores the necessary information related to a interface, such as:

More...

#include <interfaces_utils.h>

Inheritance diagram for utils::InterfaceEntry< T >:
Inheritance graph
[legend]
Collaboration diagram for utils::InterfaceEntry< T >:
Collaboration graph
[legend]

Public Member Functions

 InterfaceEntry (T *p)
 ~InterfaceEntry ()
bool is_name_equal (const char *name)
virtual void * get_pointer ()
 InterfaceEntry (T *p)
 ~InterfaceEntry ()
bool is_name_equal (const char *name)
virtual void * get_pointer ()
 InterfaceEntry (T *p)
 ~InterfaceEntry ()
bool is_name_equal (const char *name)
virtual void * get_pointer ()

Detailed Description

template<typename T>
class utils::InterfaceEntry< T >

Every InterfaceEntry stores the necessary information related to a interface, such as:

Definition at line 60 of file images/plugin_impl/interfaces_utils.h.


Constructor & Destructor Documentation

template<typename T >
utils::InterfaceEntry< T >::InterfaceEntry ( T *  p  )  [inline]

Definition at line 63 of file images/plugin_impl/interfaces_utils.h.

00064         : ptr(p)
00065     { 
00066     }

template<typename T >
utils::InterfaceEntry< T >::~InterfaceEntry (  )  [inline]

Definition at line 68 of file images/plugin_impl/interfaces_utils.h.

00069     {
00070     }

template<typename T >
utils::InterfaceEntry< T >::InterfaceEntry ( T *  p  )  [inline]

Definition at line 63 of file pdf/plugin_impl/interfaces_utils.h.

00064         : ptr(p)
00065     { 
00066     }

template<typename T >
utils::InterfaceEntry< T >::~InterfaceEntry (  )  [inline]

Definition at line 68 of file pdf/plugin_impl/interfaces_utils.h.

00069     {
00070     }

template<typename T >
utils::InterfaceEntry< T >::InterfaceEntry ( T *  p  )  [inline]

Definition at line 63 of file plaintext/plugin_impl/interfaces_utils.h.

00064         : ptr(p)
00065     { 
00066     }

template<typename T >
utils::InterfaceEntry< T >::~InterfaceEntry (  )  [inline]

Definition at line 68 of file plaintext/plugin_impl/interfaces_utils.h.

00069     {
00070     }


Member Function Documentation

template<typename T >
virtual void* utils::InterfaceEntry< T >::get_pointer (  )  [inline, virtual]

Implements utils::InterfaceBase.

Definition at line 90 of file plaintext/plugin_impl/interfaces_utils.h.

00091     { 
00092         return ptr; 
00093     }

template<typename T >
virtual void* utils::InterfaceEntry< T >::get_pointer (  )  [inline, virtual]

Implements utils::InterfaceBase.

Definition at line 90 of file pdf/plugin_impl/interfaces_utils.h.

00091     { 
00092         return ptr; 
00093     }

template<typename T >
virtual void* utils::InterfaceEntry< T >::get_pointer (  )  [inline, virtual]

Implements utils::InterfaceBase.

Definition at line 90 of file images/plugin_impl/interfaces_utils.h.

00091     { 
00092         return ptr; 
00093     }

template<typename T >
bool utils::InterfaceEntry< T >::is_name_equal ( const char *  name  )  [inline, virtual]

Implements utils::InterfaceBase.

Definition at line 72 of file plaintext/plugin_impl/interfaces_utils.h.

References name.

00073     {
00074         if (name_.size() <= 0)
00075         {
00076             name_ = typeid(T).name();
00077             std::string::size_type start = name_.find("IPlugin");
00078             if (start != std::string::npos)
00079             {
00080                 name_ = name_.substr(start);
00081             }
00082             else
00083             {
00084                 name_.clear();
00085             }
00086         }
00087         return name_ == name;
00088     }

template<typename T >
bool utils::InterfaceEntry< T >::is_name_equal ( const char *  name  )  [inline, virtual]

Implements utils::InterfaceBase.

Definition at line 72 of file pdf/plugin_impl/interfaces_utils.h.

References name.

00073     {
00074         if (name_.size() <= 0)
00075         {
00076             name_ = typeid(T).name();
00077             std::string::size_type start = name_.find("IPlugin");
00078             if (start != std::string::npos)
00079             {
00080                 name_ = name_.substr(start);
00081             }
00082             else
00083             {
00084                 name_.clear();
00085             }
00086         }
00087         return name_ == name;
00088     }

template<typename T >
bool utils::InterfaceEntry< T >::is_name_equal ( const char *  name  )  [inline, virtual]

Implements utils::InterfaceBase.

Definition at line 72 of file images/plugin_impl/interfaces_utils.h.

References name.

00073     {
00074         if (name_.size() <= 0)
00075         {
00076             name_ = typeid(T).name();
00077             std::string::size_type start = name_.find("IPlugin");
00078             if (start != std::string::npos)
00079             {
00080                 name_ = name_.substr(start);
00081             }
00082             else
00083             {
00084                 name_.clear();
00085             }
00086         }
00087         return name_ == name;
00088     }


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208