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