packaging: Initial packaging
[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(
33     const std::set<std::string>& sources, const std::string& file,
34     std::ostream& makeDepends, std::ostream& internalDepends);
35   virtual bool CheckDependencies(std::istream& internalDepends,
36                                  const char* internalDependsFileName,
37                            std::map<std::string, DependencyVector>& validDeps);
38
39 private:
40   cmDependsJava(cmDependsJava const&); // Purposely not implemented.
41   void operator=(cmDependsJava const&); // Purposely not implemented.
42 };
43
44 #endif