Publishing Templated Classes

Return to Compiling or Editing the Panda Source

Publishing Templated Classes

Postby wiredmessiah003 » Fri May 12, 2006 3:37 pm

I need to publish an instance of a templated class. I thought all I needed to do is:

typedef TemplatedClass<Class> ClassTemplateInstance;

but that doesnt seem to add any new symbols in the igate file. I'm not using the promiscuous flag in interrogate. Any ideas how this is done?
wiredmessiah003
 
Posts: 15
Joined: Thu Mar 09, 2006 4:54 pm

Postby drwr » Fri May 12, 2006 5:37 pm

Create a foo.N file in the same directory, where foo is the name of one of your .cpp or .h files, and add the line:

forcetype TemplatedClass<Class>

See, e.g., panda/src/net/connectionManager.N.

David
drwr
 
Posts: 11425
Joined: Fri Feb 13, 2004 12:42 pm
Location: Glendale, CA

Postby wiredmessiah003 » Fri May 12, 2006 11:26 pm

Thanks again drwr. I wish there was some documentation on this stuff. =)
wiredmessiah003
 
Posts: 15
Joined: Thu Mar 09, 2006 4:54 pm


Return to Compiling or Editing the Panda Source

Who is online

Users browsing this forum: No registered users and 2 guests