In CAA development, 'framework' is the second level of code structure, there are basically three levels in order:
-
Workspace
-
Framework
-
Module
Workspace
├── Framework
│ └── CNext/
│ └── IdentityCard/
│ └── PrivateInterfaces
│ └── ProtectedInterfaces
│ └── PublicInterfaces
│ └── Module.m/
│ └── LocalInterfaces/
│ └── src/
│ └── Imakefile.mk
│ └── Module2.m/
│ └── ...
├── Framework2
├── Framework3
├── ...
This repository provide three frameworks for common usage, if you want to use it, just put the source files into your own workspace and build it.
This framework has two modules. CommonFuncMod provides static common methods, and these methods are divided into five files according to their's function. CommonToolMod is designed to provide instrument classes.
-
CommonFuncMod
- GeneralEnhancement
- PartEnhancement
- PLMEnhancement
- StringEnhancement
- TopologyEnhancement
-
CommonToolMod
- CsvReader
This framework aims to provide ability to control external application. Now it can support Microsoft Excel(Office14 x86) and connection to SQL Server.
If you want to develop some tools which have to use and select temporary component, you have to create some components implement specified interface(CAA use Component Object Model). This framework has done the fussy works for you, and you just have to import it.
// ======== include
#include "JNCITempFixArrowRep.h"
// ======== member
private:
JNCITempFixArrowRep * _zArrow;
JNCITempFixArrowRep * _xArrow;
JNCITempFixArrowRep * _yArrow;
// ======== constructor
YourCommand::YourCommand():
{
::CATInstantiateComponent("JNCTempFixArrowRepComp",IID_JNCITempFixArrowRep,(void**)&_zArrow);
::CATInstantiateComponent("JNCTempFixArrowRepComp",IID_JNCITempFixArrowRep,(void**)&_xArrow);
::CATInstantiateComponent("JNCTempFixArrowRepComp",IID_JNCITempFixArrowRep,(void**)&_yArrow);
}
This framework has provided five kinds of temporary graphic components:
- WireBox
- Circle
- FixedArrow
- Point
- Text