CASM  1.1.0
A Clusters Approach to Statistical Mechanics
Help.hh
Go to the documentation of this file.
1 #ifndef CASM_Help
2 #define CASM_Help
3 
4 #include "casm/misc/TypeInfo.hh"
5 
6 namespace CASM {
7 
9 template <typename T>
10 std::string multiline_help() {
11  return std::string("No help found for type '") + type_name<T>() + "'";
12 }
13 
15 template <typename T>
16 std::string singleline_help() {
17  return std::string("No help found for type '") + type_name<T>() + "'";
18 }
19 
21 template <typename T>
22 std::string help() {
23  return multiline_help<T>();
24 }
25 } // namespace CASM
26 
27 #endif
Main CASM namespace.
Definition: APICommand.hh:8
std::string singleline_help()
Help message for reading a type T from input.
Definition: Help.hh:16
std::string multiline_help()
Help message for reading a type T from input.
Definition: Help.hh:10
std::string help()
Uses 'multiline_help<T>()' by default.
Definition: Help.hh:22