Expose shared_ptr to swig

Possibly not the right way to go about it but technically works


(cherry picked from commit 182abd4652)
This commit is contained in:
mitxela 2023-02-21 23:40:23 +00:00 committed by Jon Evans
parent 541f7467c6
commit 11788d2f39
1 changed files with 5 additions and 0 deletions

View File

@ -111,6 +111,11 @@ public:
*/ */
NETCLASS* GetNetClass() { return m_netClass.get(); } NETCLASS* GetNetClass() { return m_netClass.get(); }
/**
* @note Slow version for swig access
*/
std::shared_ptr<NETCLASS> GetNetClassSlow() { return m_netClass; }
int GetNetCode() const { return m_netCode; } int GetNetCode() const { return m_netCode; }
void SetNetCode( int aNetCode ) { m_netCode = aNetCode; } void SetNetCode( int aNetCode ) { m_netCode = aNetCode; }