Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions Build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,27 @@ RUN rpm --import https://download.mono-project.com/repo/xamarin.gpg \
&& dnf config-manager --add-repo https://download.mono-project.com/repo/centos8-stable.repo \
&& dnf -y install mono-complete

# General tools
RUN dnf -y install glibc-common glibc-utils less passwd tar vim-minimal vim-enhanced which sudo bash-completion mc yum-utils && yum clean all
# .NET
RUN dnf -y install wget \
&& wget https://packages.microsoft.com/config/centos/8/packages-microsoft-prod.rpm \
&& rpm -Uvh packages-microsoft-prod.rpm \
&& dnf -y install dotnet-sdk-6.0

# General purpose tools
RUN dnf -y install \
glibc-common \
glibc-utils \
less \
passwd \
tar \
vim-minimal \
vim-enhanced \
which \
sudo \
bash-completion \
mc \
yum-utils \
&& yum clean all

# Enable GCC toolset in shells
RUN echo "source /opt/rh/gcc-toolset-9/enable" >> /etc/bashrc
Expand Down
6 changes: 5 additions & 1 deletion Examples/Calculator/Calculator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
</errors>

<class name="Base">
<method name="ClassTypeId" description="Get Class Type Id">
<param name="ClassTypeId" type="uint64" pass="return"
description="Class type as a 64 bits integer" />
</method>
</class>

<class name="Variable" parent="Base" description="A variable number">
Expand Down Expand Up @@ -61,7 +65,7 @@
</method>
</class>

<global baseclassname="Base" releasemethod="ReleaseInstance" acquiremethod="AcquireInstance" versionmethod="GetVersion" errormethod="GetLastError">
<global baseclassname="Base" releasemethod="ReleaseInstance" acquiremethod="AcquireInstance" versionmethod="GetVersion" errormethod="GetLastError" classtypeidmethod="ClassTypeId">

<method name="GetVersion" description = "retrieves the binary version of this library.">
<param name="Major" type="uint32" pass="out" description="returns the major version of this library" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Copyright (C) 2019 Calculator developers

All rights reserved.

This file has been generated by the Automatic Component Toolkit (ACT) version 1.6.0.
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.1-develop.

Abstract: This is an autogenerated C++-Header file in order to allow an easy
use of Calculator library
Expand All @@ -29,12 +29,23 @@ Interface version: 1.0.0
#include "calculator_types.hpp"


#ifdef __cplusplus
extern "C" {
#endif

/*************************************************************************************************************************
Class definition for Base
**************************************************************************************************************************/

/**
* Get Class Type Id
*
* @param[in] pBase - Base instance.
* @param[out] pClassTypeId - Class type as a 64 bits integer
* @return error code or 0 (success)
*/
CALCULATOR_DECLSPEC CalculatorResult calculator_base_classtypeid(Calculator_Base pBase, Calculator_uint64 * pClassTypeId);

/*************************************************************************************************************************
Class definition for Variable
**************************************************************************************************************************/
Expand Down Expand Up @@ -165,7 +176,9 @@ CALCULATOR_DECLSPEC CalculatorResult calculator_createvariable(Calculator_double
*/
CALCULATOR_DECLSPEC CalculatorResult calculator_createcalculator(Calculator_Calculator * pInstance);

#ifdef __cplusplus
}
#endif

#endif // __CALCULATOR_HEADER_CPP

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Copyright (C) 2019 Calculator developers

All rights reserved.

This file has been generated by the Automatic Component Toolkit (ACT) version 1.6.0.
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.1-develop.

Abstract: This is an autogenerated C++-Header file in order to allow an easy
use of Calculator library
Expand All @@ -24,6 +24,15 @@ Interface version: 1.0.0
Class definition for Base
**************************************************************************************************************************/

/**
* Get Class Type Id
*
* @param[in] pBase - Base instance.
* @param[out] pClassTypeId - Class type as a 64 bits integer
* @return error code or 0 (success)
*/
typedef CalculatorResult (*PCalculatorBase_ClassTypeIdPtr) (Calculator_Base pBase, Calculator_uint64 * pClassTypeId);

/*************************************************************************************************************************
Class definition for Variable
**************************************************************************************************************************/
Expand Down Expand Up @@ -160,6 +169,7 @@ typedef CalculatorResult (*PCalculatorCreateCalculatorPtr) (Calculator_Calculato

typedef struct {
void * m_LibraryHandle;
PCalculatorBase_ClassTypeIdPtr m_Base_ClassTypeId;
PCalculatorVariable_GetValuePtr m_Variable_GetValue;
PCalculatorVariable_SetValuePtr m_Variable_SetValue;
PCalculatorCalculator_EnlistVariablePtr m_Calculator_EnlistVariable;
Expand Down
Loading
Loading