added support for 'in()' statement in 'select'
git-svn-id: svn://ttmath.org/publicrep/morm/trunk@1086 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -76,8 +76,13 @@ bool Model::found()
|
||||
|
||||
|
||||
|
||||
void Model::to_text(PT::TextStream & stream)
|
||||
void Model::to_text(PT::TextStream & stream, bool clear_stream)
|
||||
{
|
||||
if( clear_stream )
|
||||
{
|
||||
stream.clear();
|
||||
}
|
||||
|
||||
if( model_connector )
|
||||
{
|
||||
model_connector->to_text(stream, *this);
|
||||
@@ -85,12 +90,12 @@ void Model::to_text(PT::TextStream & stream)
|
||||
}
|
||||
|
||||
|
||||
void Model::to_text(std::string & str)
|
||||
void Model::to_text(std::string & str, bool clear_string)
|
||||
{
|
||||
PT::TextStream stream;
|
||||
|
||||
to_text(stream);
|
||||
stream.to_string(str);
|
||||
to_text(stream, false);
|
||||
stream.to_string(str, clear_string);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user