cmVTKWrapJavaCommand.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmVTKWrapJavaCommand_h
  14. #define cmVTKWrapJavaCommand_h
  15. #include "cmCommand.h"
  16. /** \class cmVTKWrapJavaCommand
  17. * \brief Create Java Language bindings for classes
  18. *
  19. * cmVTKWrapJavaCommand is used to create wrappers for classes into Java
  20. */
  21. class cmVTKWrapJavaCommand : public cmCommand
  22. {
  23. public:
  24. /**
  25. * This is a virtual constructor for the command.
  26. */
  27. virtual cmCommand* Clone()
  28. {
  29. return new cmVTKWrapJavaCommand;
  30. }
  31. /**
  32. * This is called when the command is first encountered in
  33. * the CMakeLists.txt file.
  34. */
  35. virtual bool InitialPass(std::vector<std::string> const& args);
  36. /**
  37. * This is called at the end after all the information
  38. * specified by the command is accumulated. Most commands do
  39. * not implement this method. At this point, reading and
  40. * writing to the cache can be done.
  41. */
  42. virtual void FinalPass();
  43. /**
  44. * The name of the command as specified in CMakeList.txt.
  45. */
  46. virtual const char* GetName() { return "VTK_WRAP_JAVA";}
  47. /**
  48. * Succinct documentation.
  49. */
  50. virtual const char* GetTerseDocumentation()
  51. {
  52. return "Deprecated. For use only in VTK 4.0.";
  53. }
  54. /**
  55. * More documentation.
  56. */
  57. virtual const char* GetFullDocumentation()
  58. {
  59. return
  60. " VTK_WRAP_JAVA(resultingLibraryName SourceListName\n"
  61. " class1 class2 ...)\n"
  62. "Create Java wrappers for VTK classes.";
  63. }
  64. private:
  65. std::vector<cmSourceFile> m_WrapClasses;
  66. std::vector<std::string> m_WrapHeaders;
  67. std::vector<std::string> m_OriginalNames;
  68. std::string m_LibraryName;
  69. std::string m_SourceList;
  70. };
  71. #endif