added get_connector() method to Model
This commit is contained in:
parent
b672b67e5c
commit
0843e384eb
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue