14 #ifndef TSA_DB_BASE__INCLUDED 15 #define TSA_DB_BASE__INCLUDED 17 #include "TSATypeDef.h" 18 #include "TSADataDef.h" 19 #include "TSADBSeriesImport.h" 24 class in_stream_adaptor;
25 class out_stream_adaptor;
27 class file_import_rules__obsolete;
70 void attach_name(
const std::string& name) { m_attach_name = name; }
73 const std::string& attach_name(
void)
const {
return m_attach_name; }
83 void print_table_info(
const std::string& table_name, std::ostream& stream);
97 virtual bool table_record_count_is_known(
void)
const=0;
104 virtual int64_t table_record_count(
const std::string& table_name) = 0;
125 virtual bool table_has_data(
const std::string& table_name) = 0;
152 const date_time& from_timestamp,
size_t num_records) = 0;
186 virtual bool table_exists(
const std::string& table_name)
const = 0;
189 virtual bool drop_series_table(
const std::string& table_name) = 0;
197 virtual void truncate_series_table(
const std::string& table_name,
207 void import(
const file_import_params& import_properties);
229 void raise__not_implemented(
void)
const {
Namespace for the 'Trading System API' library.
Definition: original1.TSA3Core.cpp:20
Describes the rules by which a file is to be imported. This structure is to be used in conjunction wi...
Definition: TSADBSeriesImport.h:35
Base class for all other database classes such as:
Definition: TSADBBase.h:47
virtual ~data_base(void)
Destructor.
Definition: TSADBBase.h:60
Defines the columnar structure of a table. Each column has a name, data type and field size...
Definition: TSADataDef.h:88
#define SLOC
Macro to be passed as argument to Exception constructors. Contains information about the source locat...
Definition: TSAError.h:92
A class representing the rules to use when copying database tables (usually between databases)...
Definition: TSADBSeriesImport.h:232
const size_t max_size_limit
The maximum value for size_t.
Definition: TSATypeDef.h:81
Parent class for 'in-stream adaptors'. in_stream object rely on adaptors for access to underlying dat...
Definition: TSAStreams.h:52
Abstract base class for delegates of class out_stream.
Definition: TSAStreams.h:553
static const date_time min
Constant representing the smallest allowed date_time.
Definition: TSATime.h:449
Represents a duration - the difference between two date_time values.
Definition: TSATime.h:945
Class tsa::exception used by most classes of the Trading System API library. The class inherits from ...
Definition: TSAError.h:37
Parent class for many library classes.
Definition: TSATypeDef.h:462
data_base(void)
Constructor.
Definition: TSADBBase.h:57
Class representing a gregorian-date and time-of-day combination. The time component has microsecond r...
Definition: TSATime.h:428
Class mem_table represents a memory based table. mem_table objects can be used in strategies both for...
Definition: TSAMemTable.h:48