From 0843e384eb36d86873785bc11fb7a9bb802f4db1 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Tue, 23 Feb 2021 16:58:45 +0100 Subject: [PATCH] added get_connector() method to Model --- src/model.cpp | 8 +++++++- src/model.h | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/model.cpp b/src/model.cpp index 44312e8..8c4b63f 100644 --- a/src/model.cpp +++ b/src/model.cpp @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2018-2019, Tomasz Sowa + * Copyright (c) 2018-2021, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -112,6 +112,12 @@ void Model::set_connector(ModelConnector * connector) } +ModelConnector * Model::get_connector() +{ + return model_connector; +} + + bool Model::object_exists() { return save_mode == DO_UPDATE_ON_SAVE; diff --git a/src/model.h b/src/model.h index 0911cbe..380975d 100644 --- a/src/model.h +++ b/src/model.h @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2018-2019, Tomasz Sowa + * Copyright (c) 2018-2021, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -79,7 +79,7 @@ public: void set_connector(ModelConnector & connector); void set_connector(ModelConnector * connector); - + ModelConnector * get_connector(); /* * map fields to names