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