Commit a31d4274 authored by Jacob Potter's avatar Jacob Potter

Regenerate autogenerated files

parent 14e224b6
......@@ -7,18 +7,19 @@
#import <Foundation/Foundation.h>
#include <memory>
namespace djinni_generated
namespace djinni_generated {
class TextboxListenerObjcProxy final : public ::textsort::TextboxListener
{
class TextboxListenerObjcProxy final : public ::textsort::TextboxListener
{
public:
id <TXSTextboxListener> objcRef;
TextboxListenerObjcProxy (id objcRef);
virtual ~TextboxListenerObjcProxy () override;
static std::shared_ptr<::textsort::TextboxListener> textbox_listener_with_objc (id objcRef);
virtual void update (const ::textsort::ItemList & items) override;
public:
id <TXSTextboxListener> objcRef;
TextboxListenerObjcProxy (id objcRef);
virtual ~TextboxListenerObjcProxy () override;
static std::shared_ptr<::textsort::TextboxListener> textbox_listener_with_objc (id objcRef);
virtual void update (const ::textsort::ItemList & items) override;
private:
TextboxListenerObjcProxy () {};
};
private:
TextboxListenerObjcProxy () {};
};
}
} // namespace djinni_generated
......@@ -5,31 +5,32 @@
#import "TXSItemList+Private.h"
#import "TXSTextboxListener.h"
namespace djinni_generated
namespace djinni_generated {
TextboxListenerObjcProxy::TextboxListenerObjcProxy (id objcRef)
{
TextboxListenerObjcProxy::TextboxListenerObjcProxy (id objcRef)
{
assert([[objcRef class] conformsToProtocol:@protocol(TXSTextboxListener)]);
this->objcRef = objcRef;
}
assert([[objcRef class] conformsToProtocol:@protocol(TXSTextboxListener)]);
this->objcRef = objcRef;
}
TextboxListenerObjcProxy::~TextboxListenerObjcProxy ()
{
djinni::DbxObjcWrapperCache<TextboxListenerObjcProxy> & cache = djinni::DbxObjcWrapperCache<TextboxListenerObjcProxy>::getInstance();
cache.remove(objcRef);
}
TextboxListenerObjcProxy::~TextboxListenerObjcProxy ()
{
djinni::DbxObjcWrapperCache<TextboxListenerObjcProxy> & cache = djinni::DbxObjcWrapperCache<TextboxListenerObjcProxy>::getInstance();
cache.remove(objcRef);
}
std::shared_ptr<::textsort::TextboxListener> TextboxListenerObjcProxy::textbox_listener_with_objc (id objcRef)
{
djinni::DbxObjcWrapperCache<TextboxListenerObjcProxy> & cache = djinni::DbxObjcWrapperCache<TextboxListenerObjcProxy>::getInstance();
return static_cast<std::shared_ptr<::textsort::TextboxListener>>(cache.get(objcRef));
}
std::shared_ptr<::textsort::TextboxListener> TextboxListenerObjcProxy::textbox_listener_with_objc (id objcRef)
{
djinni::DbxObjcWrapperCache<TextboxListenerObjcProxy> & cache = djinni::DbxObjcWrapperCache<TextboxListenerObjcProxy>::getInstance();
return static_cast<std::shared_ptr<::textsort::TextboxListener>>(cache.get(objcRef));
}
void TextboxListenerObjcProxy::update (const ::textsort::ItemList & items)
{
@autoreleasepool {
TXSItemList *cpp_items = [[TXSItemList alloc] initWithCppItemList:items];
[objcRef update:cpp_items];
}
void TextboxListenerObjcProxy::update (const ::textsort::ItemList & items)
{
@autoreleasepool {
TXSItemList *cpp_items = [[TXSItemList alloc] initWithCppItemList:items];
[objcRef update:cpp_items];
}
}
} // namespace djinni_generated
......@@ -7,18 +7,19 @@
#import <Foundation/Foundation.h>
#include <memory>
namespace djinni_generated
namespace djinni_generated {
class ClientInterfaceObjcProxy final : public ClientInterface
{
class ClientInterfaceObjcProxy final : public ClientInterface
{
public:
id <DBClientInterface> objcRef;
ClientInterfaceObjcProxy (id objcRef);
virtual ~ClientInterfaceObjcProxy () override;
static std::shared_ptr<ClientInterface> client_interface_with_objc (id objcRef);
virtual ClientReturnedRecord get_record (int64_t record_id, const std::string & utf8string) override;
public:
id <DBClientInterface> objcRef;
ClientInterfaceObjcProxy (id objcRef);
virtual ~ClientInterfaceObjcProxy () override;
static std::shared_ptr<ClientInterface> client_interface_with_objc (id objcRef);
virtual ClientReturnedRecord get_record (int64_t record_id, const std::string & utf8string) override;
private:
ClientInterfaceObjcProxy () {};
};
private:
ClientInterfaceObjcProxy () {};
};
}
} // namespace djinni_generated
......@@ -5,36 +5,37 @@
#import "DBClientInterface.h"
#import "DBClientReturnedRecord+Private.h"
namespace djinni_generated
namespace djinni_generated {
ClientInterfaceObjcProxy::ClientInterfaceObjcProxy (id objcRef)
{
ClientInterfaceObjcProxy::ClientInterfaceObjcProxy (id objcRef)
{
assert([[objcRef class] conformsToProtocol:@protocol(DBClientInterface)]);
this->objcRef = objcRef;
}
assert([[objcRef class] conformsToProtocol:@protocol(DBClientInterface)]);
this->objcRef = objcRef;
}
ClientInterfaceObjcProxy::~ClientInterfaceObjcProxy ()
{
djinni::DbxObjcWrapperCache<ClientInterfaceObjcProxy> & cache = djinni::DbxObjcWrapperCache<ClientInterfaceObjcProxy>::getInstance();
cache.remove(objcRef);
}
ClientInterfaceObjcProxy::~ClientInterfaceObjcProxy ()
{
djinni::DbxObjcWrapperCache<ClientInterfaceObjcProxy> & cache = djinni::DbxObjcWrapperCache<ClientInterfaceObjcProxy>::getInstance();
cache.remove(objcRef);
}
std::shared_ptr<ClientInterface> ClientInterfaceObjcProxy::client_interface_with_objc (id objcRef)
{
djinni::DbxObjcWrapperCache<ClientInterfaceObjcProxy> & cache = djinni::DbxObjcWrapperCache<ClientInterfaceObjcProxy>::getInstance();
return static_cast<std::shared_ptr<ClientInterface>>(cache.get(objcRef));
}
std::shared_ptr<ClientInterface> ClientInterfaceObjcProxy::client_interface_with_objc (id objcRef)
{
djinni::DbxObjcWrapperCache<ClientInterfaceObjcProxy> & cache = djinni::DbxObjcWrapperCache<ClientInterfaceObjcProxy>::getInstance();
return static_cast<std::shared_ptr<ClientInterface>>(cache.get(objcRef));
}
ClientReturnedRecord ClientInterfaceObjcProxy::get_record (int64_t record_id, const std::string & utf8string)
{
@autoreleasepool {
int64_t cpp_record_id = record_id;
NSString *cpp_utf8string = [[NSString alloc] initWithBytes:utf8string.data()
length:utf8string.length()
encoding:NSUTF8StringEncoding];
DBClientReturnedRecord *objcRet = [objcRef getRecord:cpp_record_id utf8string:cpp_utf8string];
ClientReturnedRecord cppRet = std::move([objcRet cppClientReturnedRecord]);
return cppRet;
}
ClientReturnedRecord ClientInterfaceObjcProxy::get_record (int64_t record_id, const std::string & utf8string)
{
@autoreleasepool {
int64_t cpp_record_id = record_id;
NSString *cpp_utf8string = [[NSString alloc] initWithBytes:utf8string.data()
length:utf8string.length()
encoding:NSUTF8StringEncoding];
DBClientReturnedRecord *objcRet = [objcRef getRecord:cpp_record_id utf8string:cpp_utf8string];
ClientReturnedRecord cppRet = std::move([objcRet cppClientReturnedRecord]);
return cppRet;
}
}
} // namespace djinni_generated
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment