Skip to content

Commit

Permalink
remove more trailing whitespace...
Browse files Browse the repository at this point in the history
  • Loading branch information
malaterre committed Aug 25, 2010
1 parent 5c8b09e commit c86f62a
Show file tree
Hide file tree
Showing 71 changed files with 141 additions and 214 deletions.
9 changes: 4 additions & 5 deletions Examples/Csharp/ExtractEncapsulatedFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
=========================================================================*/

/*
* This example shows how one from C# context can extract a binary blob
* This example shows how one from C# context can extract a binary blob
* and write out as a file.
* This example is meant for pdf encapsulated file, but can be adapted for other type
* of binary blob.
*
*
* DICOM file is:
* ...
* (0042,0010) ST (no value available) # 0, 0 DocumentTitle
* (0042,0011) OB 25\50\44\46\2d\31\2e\32\20\0d\25\e2\e3\cf\d3\20\0d\31\30\20\30\20... # 40718, 1 EncapsulatedDocument
* (0042,0012) LO [application/pdf] # 16, 1 MIMETypeOfEncapsulatedDocument
* ...
*
* Usage:
* Usage:
* $ export LD_LIBRARY_PATH=$HOME/Projects/gdcm/debug-gcc/bin
* $ mono bin/ExtractEncapsulatedFile.exe some_pdf_encapsulated.dcm
*/
Expand Down Expand Up @@ -70,8 +70,7 @@ public static int Main(string[] args)
writer.Write( encapsulated_stream );
}


return 0;
}
}

3 changes: 1 addition & 2 deletions Examples/Csharp/GetArray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
=========================================================================*/

/*
* Usage:
* Usage:
* $ export LD_LIBRARY_PATH=$HOME/Projects/gdcm/debug-gcc/bin
* $ mono bin/GetArray.exe gdcmData/012345.002.050.dcm
*/
Expand Down Expand Up @@ -78,4 +78,3 @@ public static int Main(string[] args)
return 0;
}
}

7 changes: 3 additions & 4 deletions Examples/Csharp/ManipulateFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
=========================================================================*/

/*
* Usage:
* Usage:
* $ export LD_LIBRARY_PATH=$HOME/Projects/gdcm/debug-gcc/bin
* $ mono bin/ManipulateFile.exe gdcmData/012345.002.050.dcm out.dcm
* $ mono bin/ManipulateFile.exe gdcmData/012345.002.050.dcm out.dcm
*/
using System;
using gdcm;
Expand Down Expand Up @@ -56,8 +56,7 @@ public static int Main(string[] args)
{
return 1;
}

return 0;
}
}

5 changes: 2 additions & 3 deletions Examples/Csharp/RescaleImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
=========================================================================*/

/*
* Usage:
* Usage:
* $ export LD_LIBRARY_PATH=$HOME/Projects/gdcm/debug-gcc/bin
* $ mono bin/DecompressImage.exe gdcmData/012345.002.050.dcm rescaled.dcm
* $ mono bin/DecompressImage.exe gdcmData/012345.002.050.dcm rescaled.dcm
*/
using System;
using gdcm;
Expand Down Expand Up @@ -65,4 +65,3 @@ public static int Main(string[] args)
return 0;
}
}

5 changes: 2 additions & 3 deletions Examples/Csharp/ScanDirectory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
=========================================================================*/

/*
* Usage:
* Usage:
* $ export LD_LIBRARY_PATH=$HOME/Projects/gdcm/debug-gcc/bin
* $ mono bin/ScanDirectory.exe /path/to/gdcmData/
*/
Expand All @@ -39,9 +39,8 @@ public static int Main(string[] args)
if(!b) return 1;

System.Console.WriteLine( "Scan:\n" + s.toString() );

System.Console.WriteLine( "success" );
return 0;
}
}

5 changes: 2 additions & 3 deletions Examples/Csharp/SimplePrint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
/*
Convertor convertor = new Convertor();
int a = convertor.Convert<int>( some_int_blob );
double b = convertor.Convert<double>( some_double_blob );
double b = convertor.Convert<double>( some_double_blob );
*/

/*
* Usage:
* Usage:
* $ export LD_LIBRARY_PATH=$HOME/Projects/gdcm/debug-gcc/bin
* $ mono bin/SimplePrint.exe gdcmData/012345.002.050.dcm
*/
Expand Down Expand Up @@ -78,4 +78,3 @@ public static int Main(string[] args)
return 0;
}
}

7 changes: 3 additions & 4 deletions Examples/Csharp/SortImage2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
=========================================================================*/

/*
* Usage:
* Usage:
* $ export LD_LIBRARY_PATH=$HOME/Projects/gdcm/debug-gcc/bin
* $ mono bin/SortImage.exe gdcmData/012345.002.050.dcm out.dcm
* $ mono bin/SortImage.exe gdcmData/012345.002.050.dcm out.dcm
*/
using System;
using gdcm;
Expand All @@ -32,8 +32,7 @@ public static int Main(string[] args)
{
Sorter sorter = new Sorter();
sorter.SetSortFunction( mysort );

return 0;
}
}

9 changes: 4 additions & 5 deletions Examples/Cxx/CheckBigEndianBug.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*
/*
* WARNING: This is a dev tool, do not use !
*
*
* Usage: after a gdcmconv, you would like to know if the conversion process is acceptable
* sometime a vbindiff is acceptable, sometime it is not. In the case of the famous Philips
* Little/Big Endian Explicit Transfer Syntax it is not easy to compare two files. However
Expand Down Expand Up @@ -97,7 +97,7 @@ int main(int argc, char *argv[])
// buffer2[0] = 1; // let's make the test fail
std::multiset<char> set1( buffer1, buffer1 + s1 );
std::multiset<char> set2( buffer2, buffer2 + s2 );


if( set1 == set2 )
{
Expand All @@ -109,8 +109,7 @@ int main(int argc, char *argv[])
}
delete[] buffer1;
delete[] buffer2;


return 0;
}

3 changes: 1 addition & 2 deletions Examples/Cxx/ClinicalTrialAnnotate.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*
/*
* Dummy implementation of C.7.1.3 Clinical Trial Subject Module
*
* Usage:
Expand Down Expand Up @@ -80,4 +80,3 @@ int main(int argc, char *argv[])

return 0;
}

5 changes: 2 additions & 3 deletions Examples/Cxx/CompressImage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*
*
/*
*
*/

#include "gdcmImageReader.h"
Expand Down Expand Up @@ -79,4 +79,3 @@ int main(int argc, char *argv[])

return 0;
}

5 changes: 2 additions & 3 deletions Examples/Cxx/CreateARGBImage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*
/*
* http://www.w3.org/Graphics/PNG/inline-alpha.html
* alphatest.png: PNG image data, 380 x 287, 8-bit/color RGBA, non-interlaced
*
*
* $ convert alphatest.png alphatest.rgba
*/

Expand Down Expand Up @@ -71,4 +71,3 @@ int main(int argc, char *argv[])

return 0;
}

5 changes: 2 additions & 3 deletions Examples/Cxx/CreateCMYKImage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*
/*
* http://www.w3.org/Graphics/PNG/inline-alpha.html
* alphatest.png: PNG image data, 380 x 287, 8-bit/color RGBA, non-interlaced
*
*
* $ convert alphatest.png alphatest.cmyk
*/

Expand Down Expand Up @@ -71,4 +71,3 @@ int main(int argc, char *argv[])

return 0;
}

1 change: 0 additions & 1 deletion Examples/Cxx/DiffFile.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,3 @@ int main(int argc, char *argv[])

return 0;
}

13 changes: 6 additions & 7 deletions Examples/Cxx/DumpToSQLITE3.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ int main(int argc, char *argv[])
sqlite3* db;
sqlite3_open("./dicom.db", &db);

if(db == 0)
if(db == 0)
{
std::cerr << "Could not open database." << std::endl;
return 1;
Expand All @@ -74,7 +74,7 @@ int main(int argc, char *argv[])
char *errmsg;
ret = sqlite3_exec(db, sql_stmt, 0, 0, &errmsg);

if(ret != SQLITE_OK)
if(ret != SQLITE_OK)
{
printf("Error in statement: %s [%s].\n", sql_stmt, errmsg);
return 1;
Expand All @@ -86,13 +86,13 @@ int main(int argc, char *argv[])

sqlite3_stmt *stmt;
if ( sqlite3_prepare(
db,
db,
"insert into browser values (?,?)", // stmt
-1, // If than zero, then stmt is read up to the first nul terminator
&stmt,
0 // Pointer to unused portion of stmt
)
!= SQLITE_OK)
!= SQLITE_OK)
{
printf("\nCould not prepare statement.");
return 1;
Expand Down Expand Up @@ -121,13 +121,13 @@ int main(int argc, char *argv[])
strlen(value), // length of text
SQLITE_STATIC // SQLite assumes that the information is in static
)
!= SQLITE_OK)
!= SQLITE_OK)
{
printf("\nCould not bind int.\n");
return 1;
}
}
if (sqlite3_step(stmt) != SQLITE_DONE)
if (sqlite3_step(stmt) != SQLITE_DONE)
{
printf("\nCould not step (execute) stmt.\n");
return 1;
Expand All @@ -144,4 +144,3 @@ int main(int argc, char *argv[])

return 0;
}

5 changes: 2 additions & 3 deletions Examples/Cxx/DuplicatePCDE.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ E.g.:
would be illegal because even though they are assigned different
(completely arbitrary) blocks, with the same group, element
number and private creator, (0019,3015) and (0019,3215) are the
"same" data element.
"same" data element.
*/

Expand Down Expand Up @@ -154,7 +154,7 @@ int main(int argc, char *argv[])
gdcm::DataElement duplicate = de;
duplicate.GetTag().SetElement( t.GetElement() + 1 );
dup.Insert( duplicate );
new_private = duplicate.GetTag();
new_private = duplicate.GetTag();
}
else if( t.IsPrivate() && !t.IsPrivateCreator() )
{
Expand Down Expand Up @@ -195,4 +195,3 @@ int main(int argc, char *argv[])

return 0;
}

3 changes: 1 addition & 2 deletions Examples/Cxx/EncapsulateFileInRawData.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int main(int argc, char *argv[])
anon.SetFile( file );

gdcm::MediaStorage ms = gdcm::MediaStorage::RawDataStorage;

gdcm::UIDGenerator gen;
anon.Replace( gdcm::Tag(0x0008,0x16), ms.GetString() );
std::cout << ms.GetString() << std::endl;
Expand All @@ -78,4 +78,3 @@ int main(int argc, char *argv[])

return 0;
}

1 change: 0 additions & 1 deletion Examples/Cxx/ExtractEncryptedContent.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,3 @@ int main(int argc, char *argv[])

return 0;
}

7 changes: 3 additions & 4 deletions Examples/Cxx/FixBrokenJ2K.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
* 2. YCC is set to 1, while image is grayscale need to set it back to 0
*
* Ref:
* It's a software from http://rentgenprom.ru/ , shipped with universal digital radiographic units
* "ProScan-2000". The Ukrainian manufacturer developed own digital radiographic unit and it is
* compatible with software from "ProScan-2000".
* It's a software from http://rentgenprom.ru/ , shipped with universal digital radiographic units
* "ProScan-2000". The Ukrainian manufacturer developed own digital radiographic unit and it is
* compatible with software from "ProScan-2000".
*/
int main(int argc, char *argv[])
{
Expand Down Expand Up @@ -124,4 +124,3 @@ int main(int argc, char *argv[])

return 0;
}

1 change: 0 additions & 1 deletion Examples/Cxx/GenAllVR.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,3 @@ int main(int argc, char *argv[])

return 0;
}

5 changes: 2 additions & 3 deletions Examples/Cxx/GenFakeIdentifyFile.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ gdcm::DataElement CreateFakeElement(gdcm::Tag const &tag, bool toremove)
static const gdcm::Dicts &dicts = g.GetDicts();
static const gdcm::Dict &pubdict = dicts.GetPublicDict();
static size_t countglobal = 0;
static std::vector<gdcm::Tag> balcptags =
static std::vector<gdcm::Tag> balcptags =
gdcm::Anonymizer::GetBasicApplicationLevelConfidentialityProfileAttributes();
size_t count = countglobal % balcptags.size();

Expand Down Expand Up @@ -123,7 +123,7 @@ int main(int argc, char *argv[])
using gdcm::VR;
const char *outfilename = argv[1];

std::vector<gdcm::Tag> balcptags =
std::vector<gdcm::Tag> balcptags =
gdcm::Anonymizer::GetBasicApplicationLevelConfidentialityProfileAttributes();

gdcm::Writer w;
Expand Down Expand Up @@ -183,4 +183,3 @@ int main(int argc, char *argv[])

return 0;
}

Loading

0 comments on commit c86f62a

Please sign in to comment.