inlib  1.2.0
Public Member Functions
inlib::sg::sf_img< T > Class Template Reference
Inheritance diagram for inlib::sg::sf_img< T >:
Inheritance graph
[legend]
Collaboration diagram for inlib::sg::sf_img< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual bool write (io::iwbuf &a_buffer)
virtual bool read (io::irbuf &)
virtual bool dump (std::ostream &)
 sf_img ()
 sf_img (const img< T > &a_value)
virtual ~sf_img ()
 sf_img (const sf_img &a_from)
sf_imgoperator= (const sf_img &a_from)
sf_imgoperator= (const img< T > &a_value)

Detailed Description

template<class T>
class inlib::sg::sf_img< T >

Definition at line 150 of file sfs.


Constructor & Destructor Documentation

template<class T >
inlib::sg::sf_img< T >::sf_img ( ) [inline]

Definition at line 176 of file sfs.

: bsf< img<T> >(){}
template<class T >
inlib::sg::sf_img< T >::sf_img ( const img< T > &  a_value) [inline]

Definition at line 177 of file sfs.

: bsf< img<T> >(a_value){}
template<class T >
virtual inlib::sg::sf_img< T >::~sf_img ( ) [inline, virtual]

Definition at line 178 of file sfs.

{}
template<class T >
inlib::sg::sf_img< T >::sf_img ( const sf_img< T > &  a_from) [inline]

Definition at line 180 of file sfs.

: bsf< img<T> >(a_from){}

Member Function Documentation

template<class T >
virtual bool inlib::sg::sf_img< T >::dump ( std::ostream &  ) [inline, virtual]

Implements inlib::sg::field.

Definition at line 171 of file sfs.

                                 {
    //a_out << bsf<T>::m_value << std::endl;
    return true;
  }
template<class T >
sf_img& inlib::sg::sf_img< T >::operator= ( const sf_img< T > &  a_from) [inline]

Definition at line 181 of file sfs.

                                         {
    bsf< img<T> >::operator=(a_from);
    return *this;
  }
template<class T >
sf_img& inlib::sg::sf_img< T >::operator= ( const img< T > &  a_value) [inline]

Reimplemented from inlib::sg::bsf< img< T > >.

Definition at line 186 of file sfs.

                                          {
    bsf< img<T> >::operator=(a_value);
    return *this;
  }
template<class T >
virtual bool inlib::sg::sf_img< T >::read ( io::irbuf ) [inline, virtual]

Implements inlib::sg::field.

Definition at line 160 of file sfs.

                                {
    //FIXME : have a iwbuf.write_img<T> ?
/*
    img<T>& im = bsf< img<T> >::m_value;
    if(!a_buffer.read((uint32)im.width())) return false;
    if(!a_buffer.read((uint32)im.height())) return false;
    if(!a_buffer.read((uint32)im.bpp())) return false;
    return a_buffer.read_vec(im.size(),im.buffer());
*/
    return false;    
  }
template<class T >
virtual bool inlib::sg::sf_img< T >::write ( io::iwbuf a_buffer) [inline, virtual]

Implements inlib::sg::field.

Definition at line 152 of file sfs.

                                        {
    //FIXME : have a iwbuf.write_img<T> ?
    img<T>& im = bsf< img<T> >::m_value;
    if(!a_buffer.write((uint32)im.width())) return false;
    if(!a_buffer.write((uint32)im.height())) return false;
    if(!a_buffer.write((uint32)im.bpp())) return false;
    return a_buffer.write_vec(im.size(),im.buffer());
  }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines