Difference between revisions of "VTK/Examples/Cxx/Developers/Warnings"

From KitwarePublic
< VTK‎ | Examples‎ | Cxx
Jump to: navigation, search
(Warnings.cxx)
 
Line 1: Line 1:
==Warnings.cxx==
+
= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Developers/Warnings Warnings] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =
<source lang="cpp">
 
#include <vtkSmartPointer.h>
 
#include <vtkDataObject.h>
 
#include <vtkObjectFactory.h>
 
 
 
class TestClass : public vtkDataObject
 
{
 
  public:
 
  static TestClass *New();
 
  vtkTypeRevisionMacro(TestClass,vtkDataObject);
 
  TestClass()
 
  {
 
    vtkWarningMacro("Test warning.");
 
  }
 
};
 
 
 
vtkStandardNewMacro(TestClass);
 
 
 
int main(int, char *[])
 
{
 
 
 
  vtkSmartPointer<TestClass> test =
 
      vtkSmartPointer<TestClass>::New();
 
 
 
  return EXIT_SUCCESS;
 
}
 
 
 
</source>
 
 
 
{{VTKCMakeLists|{{SUBPAGENAME}}}}
 

Latest revision as of 17:04, 12 April 2019

See Warnings on the new VTKExamples website.