Ticket #248 (closed defect: fixed)

Opened 4 days ago

Last modified 4 days ago

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

comment:1 Changed 4 days ago by jasper

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.