[opengtl-commits] [624] display the type of kernel as well |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 624
Author: cyrille
Date: 2009-03-14 17:40:51 +0100 (Sat, 14 Mar 2009)
Log Message:
-----------
display the type of kernel as well
Modified Paths:
--------------
trunk/OpenGTL/OpenShiva/tools/shivainfo/ShivaInfo.cpp
Modified: trunk/OpenGTL/OpenShiva/tools/shivainfo/ShivaInfo.cpp
===================================================================
--- trunk/OpenGTL/OpenShiva/tools/shivainfo/ShivaInfo.cpp 2009-03-14 16:32:43 UTC (rev 623)
+++ trunk/OpenGTL/OpenShiva/tools/shivainfo/ShivaInfo.cpp 2009-03-14 16:40:51 UTC (rev 624)
@@ -94,6 +94,26 @@
source.loadFromFile(fileName);
std::cout << "Name: " << source.name() << std::endl;
+ std::cout << "Type: ";
+ switch( source.sourceType())
+ {
+ case OpenShiva::Source::InvalidSource:
+ std::cout << "Invalid source";
+ break;
+ case OpenShiva::Source::Library:
+ std::cout << "Libray";
+ break;
+ case OpenShiva::Source::GeneratorKernel:
+ std::cout << "Generator kernel";
+ break;
+ case OpenShiva::Source::FilterKernel:
+ std::cout << "Filter kernel";
+ break;
+ case OpenShiva::Source::CompositionKernel:
+ std::cout << "Composition kernel";
+ break;
+ }
+ std::cout << std::endl;
if(source.metadata())
{
std::cout << "<<<<<<<<<<< Metadata >>>>>>>>>>>" << std::endl;