projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed target book map to have a struct (BookEntry).
[synfig.git]
/
synfig-core
/
src
/
synfig
/
target.h
diff --git
a/synfig-core/src/synfig/target.h
b/synfig-core/src/synfig/target.h
index
9f6e304
..
f93cf87
100644
(file)
--- a/
synfig-core/src/synfig/target.h
+++ b/
synfig-core/src/synfig/target.h
@@
-102,10
+102,20
@@
public:
*/
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);
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;
typedef std::map<String,String> ExtBook;