X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Ftarget.h;h=f93cf8794f592f96e1885c1e3bcffd26af38c9ae;hb=8289faf633081201ed763127316009f4a74e700c;hp=9f6e3049011f285ad47777ebdbb25ff296dec14e;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-core/src/synfig/target.h b/synfig-core/src/synfig/target.h index 9f6e304..f93cf87 100644 --- a/synfig-core/src/synfig/target.h +++ b/synfig-core/src/synfig/target.h @@ -102,10 +102,20 @@ public: */ public: + //! Type that represents a pointer to a Target's constructor. + /*! As a pointer to the constructor, it represents a "factory" of targets. + ** Receives the output filename (including path). + */ typedef Target* (*Factory)(const char *filename); - - //! A type for a map of targets, indexed by the name of the Target - typedef std::map > Book; + + struct BookEntry + { + Factory factory; + String filename; ///< Output filename including path + }; + + //! Book of types of targets indexed by the name of the Target. + typedef std::map Book; typedef std::map ExtBook;