Csound Csound-dev Csound-tekno Search About

[Csnd-dev] C++ wrapper

Date2024-07-27 14:01
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
Subject[Csnd-dev] C++ wrapper
While syncing the C++ wrapper, it occurred to me that it could be more convenient to place it in the same header as the C API under C++ guards, 

- it would be simpler to keep it in line with C API 
- hosts only include csound.h in C or in C++

Should we move to that arrangement?

Date2024-07-27 14:53
FromTarmo Johannes
SubjectRe: [Csnd-dev] C++ wrapper
Hi!

I can't think of any objections, sounds like good plan to me.

Tarmo

L, 27. juuli 2024 16:01 Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> kirjutas:
While syncing the C++ wrapper, it occurred to me that it could be more convenient to place it in the same header as the C API under C++ guards,

- it would be simpler to keep it in line with C API
- hosts only include csound.h in C or in C++

Should we move to that arrangement?

Date2024-07-27 15:03
FromRory Walsh
SubjectRe: [Csnd-dev] C++ wrapper
I'm not against the idea, but I do like the fact that all the C++ stuff is in one dedicated header file. I think it makes things cleaner, and also makes it a little easier to navigate when browsing for functions. I can also see how consolidating them might make things simpler in terms of maintenance. Therefore I'm happy to go with the flow on this.   

On Sat, 27 Jul 2024 at 15:53, Tarmo Johannes <trmjhnns@gmail.com> wrote:
Hi!

I can't think of any objections, sounds like good plan to me.

Tarmo

L, 27. juuli 2024 16:01 Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> kirjutas:
While syncing the C++ wrapper, it occurred to me that it could be more convenient to place it in the same header as the C API under C++ guards,

- it would be simpler to keep it in line with C API
- hosts only include csound.h in C or in C++

Should we move to that arrangement?

Date2024-07-27 16:36
FromMichael Gogins
SubjectRe: [Csnd-dev] C++ wrapper
I do not care either way.

However, I do care that the C++ threading code should be in the same header file as all the other C++ declarations.

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sat, Jul 27, 2024 at 10:04 AM Rory Walsh <rorywalsh@ear.ie> wrote:
I'm not against the idea, but I do like the fact that all the C++ stuff is in one dedicated header file. I think it makes things cleaner, and also makes it a little easier to navigate when browsing for functions. I can also see how consolidating them might make things simpler in terms of maintenance. Therefore I'm happy to go with the flow on this.   

On Sat, 27 Jul 2024 at 15:53, Tarmo Johannes <trmjhnns@gmail.com> wrote:
Hi!

I can't think of any objections, sounds like good plan to me.

Tarmo

L, 27. juuli 2024 16:01 Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> kirjutas:
While syncing the C++ wrapper, it occurred to me that it could be more convenient to place it in the same header as the C API under C++ guards,

- it would be simpler to keep it in line with C API
- hosts only include csound.h in C or in C++

Should we move to that arrangement?

Date2024-07-27 17:07
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] C++ wrapper
Which C++ threading code?

> On 27 Jul 2024, at 16:36, Michael Gogins  wrote:
> 
> *Warning*
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> I do not care either way. 
> 
> However, I do care that the C++ threading code should be in the same header file as all the other C++ declarations.
> 
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> 
> 
> On Sat, Jul 27, 2024 at 10:04 AM Rory Walsh  wrote:
> I'm not against the idea, but I do like the fact that all the C++ stuff is in one dedicated header file. I think it makes things cleaner, and also makes it a little easier to navigate when browsing for functions. I can also see how consolidating them might make things simpler in terms of maintenance. Therefore I'm happy to go with the flow on this.   
> 
> On Sat, 27 Jul 2024 at 15:53, Tarmo Johannes  wrote:
> Hi! 
> 
> I can't think of any objections, sounds like good plan to me.
> 
> Tarmo
> 
> L, 27. juuli 2024 16:01 Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> kirjutas:
> While syncing the C++ wrapper, it occurred to me that it could be more convenient to place it in the same header as the C API under C++ guards, 
> 
> - it would be simpler to keep it in line with C API 
> - hosts only include csound.h in C or in C++
> 
> Should we move to that arrangement?


Date2024-07-27 18:57
FromMichael Gogins
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] C++ wrapper
For running csound in a separate thread. 

On Sat, Jul 27, 2024, 12:07 Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
Which C++ threading code?

> On 27 Jul 2024, at 16:36, Michael Gogins <michael.gogins@GMAIL.COM> wrote:
>
> *Warning*
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> I do not care either way.
>
> However, I do care that the C++ threading code should be in the same header file as all the other C++ declarations.
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Sat, Jul 27, 2024 at 10:04 AM Rory Walsh <rorywalsh@ear.ie> wrote:
> I'm not against the idea, but I do like the fact that all the C++ stuff is in one dedicated header file. I think it makes things cleaner, and also makes it a little easier to navigate when browsing for functions. I can also see how consolidating them might make things simpler in terms of maintenance. Therefore I'm happy to go with the flow on this.   
>
> On Sat, 27 Jul 2024 at 15:53, Tarmo Johannes <trmjhnns@gmail.com> wrote:
> Hi!
>
> I can't think of any objections, sounds like good plan to me.
>
> Tarmo
>
> L, 27. juuli 2024 16:01 Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> kirjutas:
> While syncing the C++ wrapper, it occurred to me that it could be more convenient to place it in the same header as the C API under C++ guards,
>
> - it would be simpler to keep it in line with C API
> - hosts only include csound.h in C or in C++
>
> Should we move to that arrangement?


Date2024-07-27 19:20
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd-dev] [EXTERNAL] [Csnd-dev] C++ wrapper
CsoundPerformanceThread is the class and it has its own header, but it may be included in csound.h for
convenience.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 27 Jul 2024, at 18:57, Michael Gogins  wrote:
> 
> For running csound in a separate thread. 
> 
> On Sat, Jul 27, 2024, 12:07 Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> wrote:
> Which C++ threading code?
> 
> > On 27 Jul 2024, at 16:36, Michael Gogins  wrote:
> > 
> > *Warning*
> > This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> > I do not care either way. 
> > 
> > However, I do care that the C++ threading code should be in the same header file as all the other C++ declarations.
> > 
> > -----------------------------------------------------
> > Michael Gogins
> > Irreducible Productions
> > http://michaelgogins.tumblr.com
> > Michael dot Gogins at gmail dot com
> > 
> > 
> > On Sat, Jul 27, 2024 at 10:04 AM Rory Walsh  wrote:
> > I'm not against the idea, but I do like the fact that all the C++ stuff is in one dedicated header file. I think it makes things cleaner, and also makes it a little easier to navigate when browsing for functions. I can also see how consolidating them might make things simpler in terms of maintenance. Therefore I'm happy to go with the flow on this.   
> > 
> > On Sat, 27 Jul 2024 at 15:53, Tarmo Johannes  wrote:
> > Hi! 
> > 
> > I can't think of any objections, sounds like good plan to me.
> > 
> > Tarmo
> > 
> > L, 27. juuli 2024 16:01 Victor Lazzarini <000010b17ddd988e-dmarc-request@listserv.heanet.ie> kirjutas:
> > While syncing the C++ wrapper, it occurred to me that it could be more convenient to place it in the same header as the C API under C++ guards, 
> > 
> > - it would be simpler to keep it in line with C API 
> > - hosts only include csound.h in C or in C++
> > 
> > Should we move to that arrangement?
>