-/*
- * TypeDescription.cpp
- *
- * Created on: Sep 4, 2012
- * Author: holy
- */
-
#include "TypeDescription.h"
#include <algorithm>
}
+int TypeDescription::GetMaxSize() {
+ int max = 0;
+ for (map<int, TypeDescription>::const_iterator
+ i(typeDescriptions.begin()),
+ end(typeDescriptions.end());
+ i != end; ++i) {
+ if (i->second.Size() > max) {
+ max = i->second.Size();
+ }
+ }
+ return max;
+}
+
+
void TypeDescription::WriteSourceWiki(std::ostream &out) {
vector<string> types;
for (map<int, TypeDescription>::const_iterator i(typeDescriptions.begin()), end(typeDescriptions.end()); i != end; ++i) {
const TypeDescription &td(Get(GetTypeId(*i)));
out << "h3. " << td.TypeName() << endl << endl;
+ out << "Type ID: @" << td.TypeId() << "@" << endl << endl;
+
if (td.Description()) {
out << td.Description() << endl << endl;
}