Ticket #248 (closed defect: fixed)
COBIA new class wizard with custom name space puts includes files inside namespace
Reported by: | jasper | Owned by: | jasper |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Code generation | Version: | |
Keywords: | Cc: |
Description
The following command
COBIA_CodeGen.exe -n -c MyClass -N MyNameSpace -o MyClass.h
creates
namespace MyNameSpace { #pragma once #include <COBIA.h> class MyClass : public COBIA::CapeOpenObject<MyClass> { public: const COBIA::CapeStringImpl getDescriptionForErrorSource() { //TODO: implement this function; this function returns a description of the current object for error handling // The return value may be changed to any type (by value of reference) that implements const CapeCharacter * c_str() // It is recommended to include both the object type and name in the returned description, e.g. "Pump P018" return COBIATEXT("MyClass"); //TODO: change } MyClass() { } ~MyClass() { } }; using MyClassPtr = COBIA::CapeOpenObjectSmartPointer<MyClass>; } //namespace
which incorrectly has the #includes inside the namespace
Change History
Note: See
TracTickets for help on using
tickets.
In [2b98211a9cbcdee51b47a41d433865f9ca626ee0]: