| 922 | } |
| 923 | |
| 924 | AnyMap preamble(const string& desc) |
| 925 | { |
| 926 | AnyMap data; |
| 927 | if (desc.size()) { |
| 928 | data["description"] = desc; |
| 929 | } |
| 930 | data["generator"] = "Cantera SolutionArray"; |
| 931 | data["cantera-version"] = CANTERA_VERSION; |
| 932 | data["git-commit"] = gitCommit(); |
| 933 | |
| 934 | // Add a timestamp indicating the current time |
| 935 | time_t aclock; |
| 936 | ::time(&aclock); // Get time in seconds |
| 937 | struct tm* newtime = localtime(&aclock); // Convert time to struct tm form |
| 938 | data["date"] = stripnonprint(asctime(newtime)); |
| 939 | |
| 940 | return data; |
| 941 | } |
| 942 | |
| 943 | AnyMap& openField(AnyMap& root, const string& name) |
| 944 | { |
no test coverage detected