48 lines
1.1 KiB
C++
48 lines
1.1 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
|
|
|
|
/// 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& nameSpace,
|
|
const std::string& mexExt,
|
|
const std::string& mexFlags);
|
|
};
|
|
|
|
} // \namespace wrap
|