synfig-core  1.0.3
Classes | Namespaces | Macros
cairoimporter.h File Reference

It is the base class for all the cairo importers. More...

#include <cstdio>
#include <map>
#include <ETL/handle>
#include "string.h"
#include "time.h"
#include "gamma.h"
#include "renddesc.h"
#include "filesystem.h"
#include "cairo.h"

Go to the source code of this file.

Classes

class  synfig::CairoImporter
 Used for importing bitmaps of various formats, including animations. More...
struct  synfig::CairoImporter::BookEntry

Namespaces

namespace  synfig
 Where every function and class of the synfig library can be found.

Macros

#define SYNFIG_CAIROIMPORTER_MODULE_EXT
#define SYNFIG_CAIROIMPORTER_MODULE_CONSTRUCTOR_DERIVED(class, parent)   public: class(const synfig::FileSystem::Identifier &identifier): parent(identifier) { }
 Defines constructor for class derived from other class which derived from CairoImporter.
#define SYNFIG_CAIROIMPORTER_MODULE_CONSTRUCTOR(class)   SYNFIG_CAIROIMPORTER_MODULE_CONSTRUCTOR_DERIVED(class, synfig::CairoImporter)
 Defines constructor for class derived from CairoImporter.
#define SYNFIG_CAIROIMPORTER_MODULE_DECLARATIONS_DERIVED(class, parent)
#define SYNFIG_CAIROIMPORTER_MODULE_DECLARATIONS(class)
#define SYNFIG_CAIROIMPORTER_SET_NAME(class, x)   const char class::name__[]=x
 Sets the name of the importer.
#define SYNFIG_CAIROIMPORTER_SET_EXT(class, x)   const char class::ext__[]=x
 Sets the primary file extension of the importer.
#define SYNFIG_CAIROIMPORTER_SET_VERSION(class, x)   const char class::version__[]=x
 Sets the version of the importer.
#define SYNFIG_CAIROIMPORTER_SET_CVS_ID(class, x)   const char class::cvs_id__[]=x
 Sets the CVS ID of the importer.
#define SYNFIG_CAIROIMPORTER_SET_SUPPORTS_FILE_SYSTEM_WRAPPER(class, x)   const bool class::supports_file_system_wrapper__=x
 Sets the supports_file_system_wrapper flag of the importer.
#define SYNFIG_CAIROIMPORTER_INIT(class)   synfig::CairoImporter* class::create(const synfig::FileSystem::Identifier &identifier) { return new class(identifier); }

Detailed Description

It is the base class for all the cairo importers.

$Id$

Macro Definition Documentation

#define SYNFIG_CAIROIMPORTER_MODULE_EXT
Value:
public: static const char name__[], version__[], ext__[],cvs_id__[]; \
static const bool supports_file_system_wrapper__; \
static synfig::CairoImporter *create(const synfig::FileSystem::Identifier &identifier);

Defines various variables and the create method, common for all importers. To be used in the private part of the importer class definition.

#define SYNFIG_CAIROIMPORTER_MODULE_CONSTRUCTOR_DERIVED (   class,
  parent 
)    public: class(const synfig::FileSystem::Identifier &identifier): parent(identifier) { }

Defines constructor for class derived from other class which derived from CairoImporter.

#define SYNFIG_CAIROIMPORTER_MODULE_CONSTRUCTOR (   class)    SYNFIG_CAIROIMPORTER_MODULE_CONSTRUCTOR_DERIVED(class, synfig::CairoImporter)

Defines constructor for class derived from CairoImporter.

#define SYNFIG_CAIROIMPORTER_MODULE_DECLARATIONS_DERIVED (   class,
  parent 
)
Value:

Defines various variables and the create method, common for all importers. To be used in the private part of the importer class definition. And defines constructor for class derived from other class which derived from CairoImporter

#define SYNFIG_CAIROIMPORTER_MODULE_DECLARATIONS (   class)
Value:

Defines various variables and the create method, common for all importers. To be used in the private part of the importer class definition. And defines constructor

#define SYNFIG_CAIROIMPORTER_SET_NAME (   class,
 
)    const char class::name__[]=x

Sets the name of the importer.

#define SYNFIG_CAIROIMPORTER_SET_EXT (   class,
 
)    const char class::ext__[]=x

Sets the primary file extension of the importer.

#define SYNFIG_CAIROIMPORTER_SET_VERSION (   class,
 
)    const char class::version__[]=x

Sets the version of the importer.

#define SYNFIG_CAIROIMPORTER_SET_CVS_ID (   class,
 
)    const char class::cvs_id__[]=x

Sets the CVS ID of the importer.

#define SYNFIG_CAIROIMPORTER_SET_SUPPORTS_FILE_SYSTEM_WRAPPER (   class,
 
)    const bool class::supports_file_system_wrapper__=x

Sets the supports_file_system_wrapper flag of the importer.

#define SYNFIG_CAIROIMPORTER_INIT (   class)    synfig::CairoImporter* class::create(const synfig::FileSystem::Identifier &identifier) { return new class(identifier); }

Defines de implementation of the create method for the importer

Parameters
filenameThe file name to be imported by the importer.