cmDependsJava.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmDependsJava_h
  11. #define cmDependsJava_h
  12. #include "cmDepends.h"
  13. /** \class cmDependsJava
  14. * \brief Dependency scanner for Java class files.
  15. */
  16. class cmDependsJava: public cmDepends
  17. {
  18. public:
  19. /** Checking instances need to know the build directory name and the
  20. relative path from the build directory to the target file. */
  21. cmDependsJava();
  22. /** Virtual destructor to cleanup subclasses properly. */
  23. virtual ~cmDependsJava();
  24. protected:
  25. // Implement writing/checking methods required by superclass.
  26. virtual bool WriteDependencies(
  27. const std::set<std::string>& sources, const std::string& file,
  28. std::ostream& makeDepends, std::ostream& internalDepends);
  29. virtual bool CheckDependencies(std::istream& internalDepends,
  30. const char* internalDependsFileName,
  31. std::map<std::string, DependencyVector>& validDeps);
  32. private:
  33. cmDependsJava(cmDependsJava const&); // Purposely not implemented.
  34. void operator=(cmDependsJava const&); // Purposely not implemented.
  35. };
  36. #endif