1
0

cmVTKWrapJavaCommand.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 InitialPass(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. * The name of the command as specified in CMakeList.txt.
  34. */
  35. virtual const char* GetName() { return "VTK_WRAP_JAVA";}
  36. /**
  37. * Succinct documentation.
  38. */
  39. virtual const char* GetTerseDocumentation()
  40. {
  41. return "Create Java Wrappers.";
  42. }
  43. /**
  44. * More documentation.
  45. */
  46. virtual const char* GetFullDocumentation()
  47. {
  48. return
  49. "VTK_WRAP_JAVA(resultingLibraryName SourceListName SourceLists ...)";
  50. }
  51. private:
  52. std::vector<cmSourceFile> m_WrapClasses;
  53. std::vector<std::string> m_WrapHeaders;
  54. std::vector<std::string> m_OriginalNames;
  55. std::string m_LibraryName;
  56. std::string m_SourceList;
  57. };
  58. #endif