Added identifying field to set, show set name in window title.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@519 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-07-07 14:53:24 +00:00
parent cc27c3e4a0
commit 1646aebc88
5 changed files with 57 additions and 5 deletions
+4
View File
@@ -89,6 +89,10 @@ class Set : public Packaged {
/// Styling information for a particular card
IndexMap<FieldP, ValueP>& stylingDataFor(const CardP& card);
/// Get the identification of this set, an identification is something like a name, title, etc.
/** May return "" */
String identification() const;
/// Find a value in the data by name and type
template <typename T> T& value(const String& name) {
for(IndexMap<FieldP, ValueP>::iterator it = data.begin() ; it != data.end() ; ++it) {