add a CSVConnector/CSVExpression classes to serialize to csv format

Current limitation: list/vectors are not serialized.

while here:
- move the output_type flag from the DbExpression to BaseExpression class
- add Model::to_text(...) methods with an Export parameter
This commit is contained in:
2023-04-12 17:20:29 +02:00
parent d61fc31b5c
commit 86177889af
20 changed files with 604 additions and 68 deletions

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2018-2021, Tomasz Sowa
* Copyright (c) 2018-2023, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -67,8 +67,7 @@ FlatExpression * FlatConnector::get_expression()
}
void FlatConnector::to_text(pt::TextStream & stream, Model & model)
void FlatConnector::to_text(pt::TextStream & stream, Model & model, Export exp)
{
allocate_default_expression_if_needed();
@@ -82,8 +81,6 @@ void FlatConnector::to_text(pt::TextStream & stream, Model & model)
}
void FlatConnector::deallocate_expression()
{
if( expression_allocated )