| 
									
										
										
										
											2009-08-22 06:23:24 +08:00
										 |  |  | /**
 | 
					
						
							|  |  |  |  * file: Constructor.h | 
					
						
							|  |  |  |  * brief: class describing a constructor + code generation | 
					
						
							|  |  |  |  * Author: Frank Dellaert | 
					
						
							|  |  |  |  **/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <string>
 | 
					
						
							|  |  |  | #include <list>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include "Argument.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Constructor class
 | 
					
						
							|  |  |  | struct Constructor { | 
					
						
							|  |  |  |   ArgumentList args; | 
					
						
							| 
									
										
										
										
											2010-02-24 01:04:49 +08:00
										 |  |  |   bool verbose_; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   Constructor(bool verbose=true) : verbose_(verbose) {} | 
					
						
							| 
									
										
										
										
											2009-08-22 06:23:24 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   // MATLAB code generation
 | 
					
						
							|  |  |  |   // toolboxPath is main toolbox directory, e.g., ../matlab
 | 
					
						
							|  |  |  |   // classFile is class proxy file, e.g., ../matlab/@Point2/Point2.m
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   std::string matlab_wrapper_name(const std::string& className);                     // wrapper name
 | 
					
						
							|  |  |  |   void matlab_proxy_fragment(std::ofstream& ofs, const std::string& className);      // proxy class fragment
 | 
					
						
							|  |  |  |   void matlab_mfile  (const std::string& toolboxPath, const std::string& className); // m-file
 | 
					
						
							|  |  |  |   void matlab_wrapper(const std::string& toolboxPath,  | 
					
						
							|  |  |  | 		      const std::string& className,  | 
					
						
							|  |  |  | 		      const std::string& nameSpace); // wrapper
 | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 |