49 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
| /* ----------------------------------------------------------------------------
 | |
| 
 | |
|  * GTSAM Copyright 2010, Georgia Tech Research Corporation, 
 | |
|  * Atlanta, Georgia 30332-0415
 | |
|  * All Rights Reserved
 | |
|  * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
 | |
| 
 | |
|  * See LICENSE for the license information
 | |
| 
 | |
|  * -------------------------------------------------------------------------- */
 | |
| 
 | |
| /**
 | |
|  * @file Module.h
 | |
|  * @brief describes module to be wrapped
 | |
|  * @author Frank Dellaert
 | |
|  **/
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <string>
 | |
| #include <vector>
 | |
| 
 | |
| #include "Class.h"
 | |
| 
 | |
| namespace wrap {
 | |
| 
 | |
| /**
 | |
|  * A module just has a name and a list of classes
 | |
|  */
 | |
| struct Module {
 | |
|   std::string name;         ///< module name
 | |
|   std::vector<Class> classes; ///< list of classes
 | |
|   bool verbose;            ///< verbose flag
 | |
| //  std::vector<std::string> using_namespaces; ///< all default namespaces
 | |
|   std::vector<std::string> forward_declarations;
 | |
| 
 | |
|   /// constructor that parses interface file
 | |
|   Module(const std::string& interfacePath,
 | |
| 	 const std::string& moduleName,
 | |
| 	 bool enable_verbose=true);
 | |
| 
 | |
|   /// MATLAB code generation:
 | |
|   void matlab_code(const std::string& path, 
 | |
| 		   const std::string& mexExt,
 | |
| 		   const std::string& mexFlags) const;
 | |
| };
 | |
| 
 | |
| } // \namespace wrap
 |