This shows you the differences between two versions of the page.
padl_creator_c_eclipse [2018/03/04 02:53] |
padl_creator_c_eclipse [2019/10/06 20:37] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== PADL Creator C++ (Eclipse) ====== | ||
+ | |||
+ | Using the CDT provided on top of Eclipse, this project provides a means to create a PADL model from C/C++ source code. Fetch the project ''PADL Creator C++ (Eclipse)'' from the SVN and use the usual idiom: | ||
+ | |||
+ | <code> | ||
+ | try { | ||
+ | final ICodeLevelModelCreator creator = | ||
+ | new padl.creator.cppfile.eclipse.CPPCreator(aSourceDirectory); | ||
+ | codeLevelModel = | ||
+ | CPPFactoryEclipse.getInstance().createCodeLevelModel(aName); | ||
+ | codeLevelModel.create(creator); | ||
+ | } | ||
+ | catch (final CreationException e) { | ||
+ | e.printStackTrace(ProxyConsole.getInstance().errorOutput()); | ||
+ | } | ||
+ | </code> | ||
+ | |||
+ | :!: The ''padl.generator.helper.ModelGenerator'' interface in project ''[[PADL Generator]]'' hides the implementation details of creating a PADL model and should be used in most of the cases. | ||