Changed target book map to have a struct (BookEntry).
[synfig.git] / synfig-core / src / synfig / target.h
index 2f3c038..f93cf87 100644 (file)
@@ -107,12 +107,15 @@ public:
        **  Receives the output filename (including path).
        */
        typedef Target* (*Factory)(const char *filename);
+       
+       struct BookEntry
+       {
+               Factory factory;
+               String filename; ///< Output filename including path
+       };
 
        //! Book of types of targets indexed by the name of the Target.
-       /*! Each entry contains the Target constructor pointer and the output 
-       **  filename string (including path).
-       */
-       typedef std::map<String,std::pair<Factory,String> > Book;
+       typedef std::map<String,BookEntry> Book;
 
        typedef std::map<String,String> ExtBook;