DATRW++ library: seismic data I/O with multiple formats

◆ main()

int main ( int  iargc,
char *  argv[] 
)

Definition at line 51 of file libdatrwxxinfo.cc.

References LIBDATRWXXINFO_VERSION, datrw::libversion, datrw::formatmodifiers::online_help(), datrw::online_help(), and datrw::supported_data_types().

52 {
53  cout << "This is libdatrwxxinfo" << endl;
54  cout << LIBDATRWXXINFO_VERSION << endl;
55  cout << datrw::libversion << endl;
56  cout << endl;
57  if (iargc>1)
58  {
59  if (argv[1]==std::string("all"))
60  {
62  cout << endl;
64  }
65  else if (argv[1]==std::string("formats"))
66  {
68  cout << endl;
70  }
71  else
72  {
73  datrw::online_help(argv[1], cout);
74  }
75  }
76  else
77  {
78  cout << "The program takes one argument to control its output:" << endl;
79  cout << endl;
80  cout << "libdatrwxxinfo all\n"
81  << " print all existing online help texts" << endl;
82  cout << endl;
83  cout << "libdatrwxxinfo formats\n"
84  << " summarize supported formats" << endl;
85  cout << endl;
86  cout << "libdatrwxxinfo <format>\n"
87  << " print online help text for format <format>" << endl;
88  }
89 }
void online_help(std::ostream &os)
Provide online help on modifiers.
void online_help(const std::string &format, std::ostream &os, const bool &modifierhelp)
Definition: formats.cc:120
const char *const libversion
Version string.
Definition: aalibdatrwxx.cc:18
#define LIBDATRWXXINFO_VERSION
void supported_data_types(std::ostream &os)
Definition: formats.cc:290
Here is the call graph for this function: