diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2010-05-25 17:45:03 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2010-05-25 17:45:03 +0000 |
| commit | 24ab24777d7cd72b7ff35a9d02cb43e26f006b0d (patch) | |
| tree | 09b1e2e72e05ff6e7502f02edb6d3fc6100cc741 /src/tools | |
| parent | b4e1fa15d0c809439139db3a60a3969d848dcf77 (diff) | |
| download | libbu++-24ab24777d7cd72b7ff35a9d02cb43e26f006b0d.tar.gz libbu++-24ab24777d7cd72b7ff35a9d02cb43e26f006b0d.tar.bz2 libbu++-24ab24777d7cd72b7ff35a9d02cb43e26f006b0d.tar.xz libbu++-24ab24777d7cd72b7ff35a9d02cb43e26f006b0d.zip | |
More myriad testing, fixes, arrangement, etc. UnitSuite add-ons, it has some
command line parameters now, I would like to also add an automatic paramter that
would switch it to a computer-readable output mode for use in a larger testing
framework.
Diffstat (limited to '')
| -rw-r--r-- | src/tools/myriad.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/tools/myriad.cpp b/src/tools/myriad.cpp index 605aac9..535d7ac 100644 --- a/src/tools/myriad.cpp +++ b/src/tools/myriad.cpp | |||
| @@ -121,7 +121,6 @@ int main( int argc, char *argv[] ) | |||
| 121 | { | 121 | { |
| 122 | File fIn( opts.sFile, File::Read ); | 122 | File fIn( opts.sFile, File::Read ); |
| 123 | Myriad m( fIn ); | 123 | Myriad m( fIn ); |
| 124 | m.initialize(); | ||
| 125 | } | 124 | } |
| 126 | break; | 125 | break; |
| 127 | 126 | ||
| @@ -135,7 +134,6 @@ int main( int argc, char *argv[] ) | |||
| 135 | { | 134 | { |
| 136 | File fOut( opts.sFile, File::Write|File::Read ); | 135 | File fOut( opts.sFile, File::Write|File::Read ); |
| 137 | Myriad m( fOut ); | 136 | Myriad m( fOut ); |
| 138 | m.initialize(); | ||
| 139 | m.createStream( opts.iPreallocate ); | 137 | m.createStream( opts.iPreallocate ); |
| 140 | } | 138 | } |
| 141 | break; | 139 | break; |
| @@ -143,14 +141,13 @@ int main( int argc, char *argv[] ) | |||
| 143 | case modeStreamDump: | 141 | case modeStreamDump: |
| 144 | if( !opts.sFile.isSet() ) | 142 | if( !opts.sFile.isSet() ) |
| 145 | { | 143 | { |
| 146 | sio << "Please specify a file manipulate." << sio.nl; | 144 | sio << "Please specify a file to manipulate." << sio.nl; |
| 147 | return 0; | 145 | return 0; |
| 148 | } | 146 | } |
| 149 | else | 147 | else |
| 150 | { | 148 | { |
| 151 | File fOut( opts.sFile, File::Read ); | 149 | File fOut( opts.sFile, File::Read ); |
| 152 | Myriad m( fOut ); | 150 | Myriad m( fOut ); |
| 153 | m.initialize(); | ||
| 154 | MyriadStream s = m.openStream( opts.iStream ); | 151 | MyriadStream s = m.openStream( opts.iStream ); |
| 155 | sio << "Stream " << opts.iStream << ":" << sio.nl; | 152 | sio << "Stream " << opts.iStream << ":" << sio.nl; |
| 156 | char buf[8]; | 153 | char buf[8]; |
| @@ -198,7 +195,6 @@ int main( int argc, char *argv[] ) | |||
| 198 | { | 195 | { |
| 199 | File fOut( opts.sFile, File::Write|File::Read ); | 196 | File fOut( opts.sFile, File::Write|File::Read ); |
| 200 | Myriad m( fOut ); | 197 | Myriad m( fOut ); |
| 201 | m.initialize(); | ||
| 202 | MyriadStream sOut = m.openStream( | 198 | MyriadStream sOut = m.openStream( |
| 203 | m.createStream( opts.iPreallocate ) | 199 | m.createStream( opts.iPreallocate ) |
| 204 | ); | 200 | ); |
