void CompatComponent::DumpTimePeriod(std::ostream& fp, const TimePeriod::Ptr& tp)
{
fp << "define timeperiod {" << "\n"
- << "\t" << "timeperiod_name" << "\t" << tp->GetName() << "\n";
+ << "\t" << "timeperiod_name" << "\t" << tp->GetName() << "\n"
+ << "\t" << "alias" << "\t" << tp->GetName() << "\n";
Dictionary::Ptr ranges = tp->Get("ranges");
// This is obviously incorrect for non-trivial cases.
fp << " \"" << arg << "\"";
}
+ } else if (!commandLine.IsEmpty()) {
+ fp << Convert::ToString(commandLine);
} else {
- fp << Convert::ToString(commandLine) << "\n";
+ fp << "<internal>";
}
fp << "\n";