GOLP--the Generic Object Library of Properties
Golp is a lightweight, easy-to-use property library for numerical simulation of fuild and heat transfer problems. Golp is not, but more than a property database, it is easily embeded to C++ programs.
Golp is designed with ANSI C++, using object-oriented method. It can be compiled on most platform.
Propery Interface
Golp has a generic interface, which is a base class of all property classes. The base class defines all the methods to query property.[property.h]
Property classes
the current property classes:
Property class must drives from base class Property, and implements the two pure virtual functions in base class -- Description() and Formula(), and other property query method.
COM extension
- COM interface: [IDL interface] [C/C++ interface]
- COM property class, a template class to convert property classes to classes using COM interface.
- COM factory class, a template class for creating property objects.
- Automation, use Microsoft ATL to implementation golp as Windows Automation, which can be used by Windows scripting host and Excel.
Python extension
Using Boost.Python v2 to expose property classes to Python, needing not to rewrite the classes. Each C++ property classes is reflected to a Python class, and all Python property classes have the same base class "Property" too. It also allow user to override virtual functions of property classes, and call back them.[pygolp.cpp][pygolpdef.h]
Examples
- usage.cpp
- comtest1, a example to use COM property component in Microsft VC.
- comtest2, a example to use COM property component in Compaq Virual Fortran.
- test.py, a example Python script of using golp Python module.
Author
Xu Xianghua, PhD candidate of Dept. of Engineering Mechanics, Tsinghua University, Beijing, China.
Email: allanxu@msn.com
License
Golp is distributed under the terms of the GNU Lesser General Public License, which is compliant with the guidelines of the Open Source and Free Software Fundations. See GNU Lesser General Public License for detail.
Updated: Oct 2002