clibgen.LibraryDefinition Class
Namespace: clibgen
MATLAB definition for C++ library
Description
A clibgen.LibraryDefinition
object contains information about a C++ library, such as the
classes, functions, methods, and properties present in the library. The definitions help
MATLAB® identify information about parameters, such as pointers.
The clibgen.LibraryDefinition
class is a handle
class.
Creation
libdef = LibraryDefinition(
creates a
library definition object from dataFile
)
, the name
of the data file created by the dataFile
.xmlclibgen.generateLibraryDefinition
command. The constructor validates that the
dataFile
file is both syntactically and semantically valid. If the file
is not valid, then the constructor throws an error.
Input Arguments
dataFile
— XML filename
string | character vector
XML filename, specified as a string or a character vector, created by clibgen.generateLibraryDefinition
. The name includes the extension
.xml
.
Properties
OutputFolder
— Folder for interface files
string | character vector
Folder for interface files, specified as a string or a character vector.
Attributes:
GetAccess | public |
SetAccess | public |
Libraries
— Library names
string | character vector
Library names, specified as a string or a character vector.
Attributes:
GetAccess | public |
SetAccess | public |
IncludePath
— Path for include folders
string | character vector
Path for include folders, specified as a string or a character vector.
Attributes:
GetAccess | public |
SetAccess | public |
Classes
— Class definitions
clibgen.ClassDefinition
Class definitions in the library, specified as one or more clibgen.ClassDefinition
objects.
Attributes:
GetAccess | public |
SetAccess | private |
Enumerations
— Enumeration definitions
clibgen.EnumDefinition
Enumeration definitions in the library, specified as one or more clibgen.EnumDefinition
objects.
Attributes:
GetAccess | public |
SetAccess | private |
Functions
— Nonmember function definitions
clibgen.FunctionDefinition
Nonmember function definitions in the library, specified as one or more clibgen.FunctionDefinition
objects.
Attributes:
GetAccess | public |
SetAccess | private |
HeaderFiles
— Header file names
string | character vector
Header file names to use in the library interface, specified as a string or a character vector.
Attributes:
GetAccess | public |
SetAccess | private |
SupportingSourceFiles
— C++ source file names
string | character vector
C++ source file names, specified as one or more strings or a character vectors..
Attributes:
GetAccess | public |
SetAccess | private |
InterfaceName
— MATLAB interface namespace
string | character vector
Since R2024a
MATLAB interface namespace for the library, specified as a string or a character vector.
Attributes:
GetAccess | public |
SetAccess | private |
DefinedMacros
— Macro definitions
string | character vector
List of macro definitions to use while parsing header files, specified as a string or a character vector.
Attributes:
GetAccess | public |
SetAccess | private |
UndefinedMacros
— Macro cancellations
string | character vector
List of macro cancellations to use while parsing header files, specified as a string or a character vector.
Attributes:
GetAccess | public |
SetAccess | private |
FunctionTypes
— Definition of function types
clibgen.FunctionTypeDefinition
Definition of function types in the library, specified as one or more clibgen.FunctionTypeDefinition
objects.
Attributes:
GetAccess | public |
SetAccess | private |
OpaqueTypes
— Definition of typedef void*
clibgen.OpaqueTypeDefinition
Definition of typedef void*
in the library, specified as one or
more clibgen.OpaqueTypeDefinition
objects.
Attributes:
GetAccess | public |
SetAccess | private |
Methods
Public Methods
addClass | Add class to library definition |
addEnumeration | Add enumeration to library definition |
addFunction | Add function to library definition |
addFunctionType | Add function type to library definition |
addOpaqueType | Add opaque type to library definition |
copyRuntimeDependencies | Copy run-time libraries to C++ interface library folder |
build | Build library interface |
summary | Display C++ classes, functions and enums in MATLAB interface |
validate | Validate library definition |
Version History
Introduced in R2019aR2024a: PackageName
property renamed to
InterfaceName
The name of the PackageName
property is now InterfaceName
.
The behavior of the property remains the same. There are no plans to remove support for
existing references to the property.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)