]> Creatis software - cpPlugins.git/blobdiff - appli/examples/plugins/test.cxx
...
[cpPlugins.git] / appli / examples / plugins / test.cxx
diff --git a/appli/examples/plugins/test.cxx b/appli/examples/plugins/test.cxx
new file mode 100644 (file)
index 0000000..8af6bf9
--- /dev/null
@@ -0,0 +1,28 @@
+
+#include <itkObject.h>
+#include <vtkObject.h>
+#include <vtkSmartPointer.h>
+
+int main( int argc, char* argv[] )
+{
+  itk::Object::Pointer        m_ITK = itk::Object::New( );
+  vtkSmartPointer< vtkObject > m_VTK = vtkSmartPointer< vtkObject >::New( );
+
+  std::cout
+    << m_ITK->GetMTime( ) << " "
+    << m_VTK->GetMTime( ) << std::endl;
+
+  m_ITK->Modified( );
+  m_VTK->Modified( );
+  std::cout
+    << m_ITK->GetMTime( ) << " "
+    << m_VTK->GetMTime( ) << std::endl;
+
+  m_ITK->Modified( );
+  m_VTK->Modified( );
+  std::cout
+    << m_ITK->GetMTime( ) << " "
+    << m_VTK->GetMTime( ) << std::endl;
+
+  return( 0 );
+}