added get_connector() method to Model

This commit is contained in:
Tomasz Sowa 2021-02-23 16:58:45 +01:00
parent b672b67e5c
commit 0843e384eb
2 changed files with 9 additions and 3 deletions

View File

@ -5,7 +5,7 @@
*/ */
/* /*
* Copyright (c) 2018-2019, Tomasz Sowa * Copyright (c) 2018-2021, Tomasz Sowa
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * 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() bool Model::object_exists()
{ {
return save_mode == DO_UPDATE_ON_SAVE; return save_mode == DO_UPDATE_ON_SAVE;

View File

@ -5,7 +5,7 @@
*/ */
/* /*
* Copyright (c) 2018-2019, Tomasz Sowa * Copyright (c) 2018-2021, Tomasz Sowa
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * 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);
void set_connector(ModelConnector * connector); void set_connector(ModelConnector * connector);
ModelConnector * get_connector();
/* /*
* map fields to names * map fields to names