1
0

cmVTKWrapJavaCommand.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #ifndef cmVTKWrapJavaCommand_h
  2. #define cmVTKWrapJavaCommand_h
  3. #include "cmStandardIncludes.h"
  4. #include "cmCommand.h"
  5. /** \class cmVTKWrapJavaCommand
  6. * \brief Create Java Language bindings for classes
  7. *
  8. * cmVTKWrapJavaCommand is used to create wrappers for classes into Java
  9. */
  10. class cmVTKWrapJavaCommand : public cmCommand
  11. {
  12. public:
  13. /**
  14. * This is a virtual constructor for the command.
  15. */
  16. virtual cmCommand* Clone()
  17. {
  18. return new cmVTKWrapJavaCommand;
  19. }
  20. /**
  21. * This is called when the command is first encountered in
  22. * the CMakeLists.txt file.
  23. */
  24. virtual bool Invoke(std::vector<std::string>& args);
  25. /**
  26. * This is called at the end after all the information
  27. * specified by the command is accumulated. Most commands do
  28. * not implement this method. At this point, reading and
  29. * writing to the cache can be done.
  30. */
  31. virtual void FinalPass();
  32. /**
  33. * This determines if the command gets propagated down
  34. * to makefiles located in subdirectories.
  35. */
  36. virtual bool IsInherited()
  37. {return true;}
  38. /**
  39. * The name of the command as specified in CMakeList.txt.
  40. */
  41. virtual const char* GetName() { return "VTK_WRAP_JAVA";}
  42. /**
  43. * Succinct documentation.
  44. */
  45. virtual const char* GetTerseDocumentation()
  46. {
  47. return "Create Java Wrappers.";
  48. }
  49. /**
  50. * More documentation.
  51. */
  52. virtual const char* GetFullDocumentation()
  53. {
  54. return
  55. "VTK_WRAP_JAVA(resultingLibraryName SourceListName SourceLists ...)";
  56. }
  57. private:
  58. std::vector<cmSourceFile> m_WrapClasses;
  59. std::vector<std::string> m_WrapHeaders;
  60. std::vector<std::string> m_OriginalNames;
  61. std::string m_LibraryName;
  62. std::string m_SourceList;
  63. };
  64. #endif