Changed target book map to have a struct (BookEntry).
[synfig.git] / synfig-core / src / synfig / target.h
index 9f6e304..f93cf87 100644 (file)
@@ -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<String,std::pair<Factory,String> > 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<String,BookEntry> Book;
 
        typedef std::map<String,String> ExtBook;