qface icon indicating copy to clipboard operation
qface copied to clipboard

Qface generator

Open khoulou opened this issue 6 years ago • 5 comments

hey, sorry if it seems like a dumb question, but i follewed the steps that u mentioned in order to install and download Qface, and now i want to use it, atleast check the examples, but i cnt find the appropriate tool to do so! ( where is the generator??!) I rly rly rly need ur help! thank u

khoulou avatar Mar 22 '18 10:03 khoulou

QFace had in the past some included generators. Nowadays it is just a library to write your generator. You can search for the Pelagicore github account for the generators. They start with QFace-...

Can you point me where you found the instructions?

Thanks

jryannel avatar Mar 22 '18 17:03 jryannel

this is the link that I used to install Qface " https://github.com/Pelagicore/qface " I tried to do the example :

// echo.qface
module org.example 1.0;

/**!
The echo interface to call someone
on the other side
*/
interface Echo {
    readonly Message lastMessage;
    void echo(Message message);
    signal callMe();
};

struct Message {
    string text;
};

but i wasn't able to find the appropriate IDL to work with, i tried QT creator, but it wasn't the right one, could you please point out which one i should use in order to run a .Qface file.

Thank you

khoulou avatar Mar 23 '18 07:03 khoulou

QFace is an IDL library. You need to install one of the tools, e.g. qface-qtcpp (see here for an incomplete list: http://qface.readthedocs.io/en/latest/builtin.html). These tools will then read the qface file and generate the technology specific output. Hope this helps.

Sorry for the late response. Seems I need to update the documentation a bit.

jryannel avatar May 02 '18 11:05 jryannel

The main purpose of qface is to write your own generator. See here for an example: http://qface.readthedocs.io/en/latest/usage.html

jryannel avatar May 02 '18 11:05 jryannel

Has the template file qface/templates/qface/qtcpp.j2 been forgotten in qface codebase when concrete generators had been separated from the project? It looks like it should be moved to https://github.com/Pelagicore/qface-qtcpp as very much cpp-specific.

vifactor avatar Feb 25 '19 09:02 vifactor