Changeset 3448 in Sophya for trunk/SophyaPI/PIext/nomtarradapter.cc
- Timestamp:
- Jan 31, 2008, 7:16:49 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/nomtarradapter.cc
r3335 r3448 166 166 if (ok) { 167 167 string nslice; 168 if 168 if(opts.size() > 2) nslice = opts[2]; 169 169 else nslice = buff; 170 170 NamedObjMgr omg; 171 171 omg.AddObj(slice, nslice, true); 172 return 0; 173 } 174 } 175 176 cout << "NOMAdapter_TArray<T>::PerformOperation(): Error operation/arguments !" << endl; 177 cout << "...Valid args: slicexy idxZ [slicename], sliceyz idxX [nm] slicexz idxY [nm]" << endl; 178 return 1; 172 } 173 else delete slice; 174 return 0; 175 } 176 else if (opts.size() >= 1) { 177 if (opts[0] == "compactalldim") { 178 mArr->CompactAllDimensions(); ok = true; 179 cout << "PerformOperation(): mArr->CompactAllDimensions() " << endl; 180 } 181 else if (opts[0] == "compactdim") { 182 mArr->CompactTrailingDimensions(); ok = true; 183 cout << "PerformOperation(): mArr->CompactTrailingDimensions() " << endl; 184 } 185 else ok = false; 186 if (ok) return 0; 187 } 188 189 if (!ok) { 190 cout << "NOMAdapter_TArray<T>::PerformOperation(): Error operation/arguments !" << endl; 191 cout << "...Valid args: slicexy idxZ [slicename], sliceyz idxX [nm] slicexz idxY [nm]" << endl; 192 cout << "... compactdim (=CompactTrailingDimensions()), compactalldim (=CompactAllDimensions())" << endl; 193 return 1; 194 } 179 195 } 180 196
Note:
See TracChangeset
for help on using the changeset viewer.