VConnection8.h
// VIPS connection wrapper
/*
This file is part of VIPS.
VIPS is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
*/
/*
These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
*/
#ifndef VIPS_VCONNECTION_H
#define VIPS_VCONNECTION_H
#include <vips/vips.h>
VIPS_NAMESPACE_START
class VSource : public VObject
{
public:
VSource( VipsSource *input, VSteal steal = STEAL ) :
VObject( (VipsObject *) input, steal )
{
}
static VSource
new_from_descriptor( int descriptor );
static VSource
new_from_file( const char *filename );
static VSource
new_from_blob( VipsBlob *blob );
static VSource
new_from_memory( const void *data, size_t size );
static VSource
new_from_options( const char *options );
VipsSource *
get_source() const
{
return( (VipsSource *) VObject::get_object() );
}
};
class VTarget : public VObject
{
public:
VTarget( VipsTarget *output, VSteal steal = STEAL ) :
VObject( (VipsObject *) output, steal )
{
}
static VTarget
new_to_descriptor( int descriptor );
static
VTarget new_to_file( const char *filename );
static
VTarget new_to_memory();
VipsTarget *
get_target() const
{
return( (VipsTarget *) VObject::get_object() );
}
};
VIPS_NAMESPACE_END
#endif /*VIPS_VCONNECTION_H*/
VObject
Definition: VImage8.h:68
VObject::get_object
VipsObject * get_object() const
Definition: VImage8.h:172
VSource
Definition: VConnection8.h:46
VSource::new_from_blob
static VSource new_from_blob(VipsBlob *blob)
Definition: VConnection.cpp:74
VSource::new_from_options
static VSource new_from_options(const char *options)
Definition: VConnection.cpp:101
VSource::new_from_file
static VSource new_from_file(const char *filename)
Definition: VConnection.cpp:61
VSource::get_source
VipsSource * get_source() const
Definition: VConnection8.h:91
VSource::new_from_memory
static VSource new_from_memory(const void *data, size_t size)
Definition: VConnection.cpp:87
VSource::VSource
VSource(VipsSource *input, VSteal steal=STEAL)
Definition: VConnection8.h:51
VSource::new_from_descriptor
static VSource new_from_descriptor(int descriptor)
Definition: VConnection.cpp:48
VTarget
Definition: VConnection8.h:107
VTarget::new_to_file
static VTarget new_to_file(const char *filename)
Definition: VConnection.cpp:127
VTarget::get_target
VipsTarget * get_target() const
Definition: VConnection8.h:141
VTarget::new_to_memory
static VTarget new_to_memory()
Definition: VConnection.cpp:140
VTarget::new_to_descriptor
static VTarget new_to_descriptor(int descriptor)
Definition: VConnection.cpp:114
VTarget::VTarget
VTarget(VipsTarget *output, VSteal steal=STEAL)
Definition: VConnection8.h:112