#95 Support namespace qualification fior %class in C++

open
nobody
c++ (1)
5
2014-08-14
2014-08-13
Francis ANDRE
No

Hi

One needs to support namespace based class in c++ as for example

%class FOO::BAR::MyClass

Rgds

Discussion

  • Francis ANDRE
    Francis ANDRE
    2014-08-13

    %class ALS::TSAP::PROV::TSAP

    SMC generates

    class ALS::TSAP::PROV::TSAPState;
    class TSAPContext;
    class ALS::TSAP::PROV::TSAP;

    class ALS::TSAP::PROV::TSAPState :
    public statemap::State
    {
    public:

    ALS::TSAP::PROV::TSAPState(const char *name, int stateId)
    

    while it should generate


    namespace ALS {
    namespace TSAP {
    namespace PROV {
    class TSAP;
    }
    }
    }
    namespace ALS {
    namespace TSAP {
    namespace PROV {
    class TSAPState :
    public statemap::State


    so that all generated classe be naed in the target namespace.

     
  • Francis ANDRE
    Francis ANDRE
    2014-08-14

    Hi

    Just discover that %package was doing the job by looking at the source code...
    Thus, this request can be closed.