Changeset 88
- Timestamp:
- Apr 4, 2006, 1:06:13 PM (15 years ago)
- Location:
- trunk/se/lu/thep/wenni/bin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/se/lu/thep/wenni/bin/NNIFileConverter/Parameter.cc
r73 r88 2 2 3 3 #include "Parameter.h" 4 #include <config.h> // this header file is created by configure 4 5 5 6 #include <cstdlib> … … 72 73 ok=true; 73 74 } 75 if (myargv=="--version") { 76 version(); 77 exit(0); 78 } 74 79 if (myargv==string("-weight")) 75 80 if ((i+1)<argc) { … … 221 226 << "\t-logratio output file logratio (first/second)\n" 222 227 << "\t [" << logratio_ << "\n" 228 << "\t--version print version information and exit\n" 223 229 << "\t-weight output file weight\n" 224 230 << "\t [" << weight_ << "]\n"; 225 231 } 226 232 233 234 void Parameter::version(void) const 235 { 236 using namespace std; 237 cout << PACKAGE_STRING 238 << "\nCopyright (C) 2006 Jari Häkkinen and Peter Johansson.\n\n" 239 << "This is free software; see the source for copying conditions.\n" 240 << "There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR\n" 241 << "A PARTICULAR PURPOSE." << endl; 242 } 243 227 244 }}} // of namespace nnifileconverter, wenni and namespace theplu -
trunk/se/lu/thep/wenni/bin/NNIFileConverter/Parameter.h
r69 r88 31 31 void defaults(void); 32 32 void help(void) const; 33 void version(void) const; 33 34 34 35 double beta_; -
trunk/se/lu/thep/wenni/bin/nni/Parameter.cc
r69 r88 3 3 #include "Parameter.h" 4 4 #include "nni.h" 5 #include <config.h> // this header file is created by configure 5 6 6 7 #include <iostream> … … 54 55 ok=false; 55 56 } 57 if (myargv=="--version") { 58 version(); 59 exit(0); 60 } 56 61 if (myargv==string("-weight")) 57 62 if (++i<argc) { … … 121 126 } 122 127 128 129 130 void Parameter::version(void) const 131 { 132 using namespace std; 133 cout << PACKAGE_STRING 134 << "\nCopyright (C) 2005-2006 Jari Häkkinen and Peter Johansson.\n\n" 135 << "This is free software; see the source for copying conditions.\n" 136 << "There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR\n" 137 << "A PARTICULAR PURPOSE." << endl; 138 } 139 123 140 }} // of namespace wenni and namespace theplu -
trunk/se/lu/thep/wenni/bin/nni/Parameter.h
r69 r88 29 29 void analyse(void); 30 30 void defaults(void); 31 void version(void) const; 31 32 32 33 double beta_; -
trunk/se/lu/thep/wenni/bin/nni/nni.hlp
r74 r88 21 21 std::cout << " Available algorithms are kNNI and WeNNI and a string\n"; 22 22 std::cout << " is expected as the option\n"; 23 std::cout << " --version print version information and exit\n"; 23 24 std::cout << " -weight: set the weight (or SNR) file name (weight.data)\n"; 24 25 std::cout << " Weights must be within [0,1].\n";
Note: See TracChangeset
for help on using the changeset viewer.