Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Data/DataColumn.cpp (1 of 4 files). Show all
Unified · Split
| @@ -23,6 +23,7 @@ · 22 unmodified lines | |||
| 23 | 23 | ||
| 24 | #include "DataColumn.h" | 24 | #include "DataColumn.h" |
| 25 | #include "DataTable.h" | 25 | #include "DataTable.h" |
| 26 | #include "DataSet.h" | ||
| 26 | 27 | ||
| 27 | using namespace std; | 28 | using namespace std; |
| 28 | using namespace GSF::Data; | 29 | using namespace GSF::Data; |
| @@ -59,6 +60,8 @@ DataColumn::DataColumn(DataTablePtr parent, string name, DataType type) : · 30 unmodified lines | |||
| 59 | m_type(type), | 60 | m_type(type), |
| 60 | m_index(-1) | 61 | m_index(-1) |
| 61 | { | 62 | { |
| 63 | if (m_parent == nullptr) | ||
| 64 | throw DataSetException("DataTable parent is null"); | ||
| 62 | } | 65 | } |
| 63 | 66 | ||
| 64 | DataColumn::~DataColumn() = default; | 67 | DataColumn::~DataColumn() = default; |