diff options
Diffstat (limited to 'p2pvr/lib/objectRowState.h')
-rw-r--r-- | p2pvr/lib/objectRowState.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/p2pvr/lib/objectRowState.h b/p2pvr/lib/objectRowState.h index d98380b..142e5cb 100644 --- a/p2pvr/lib/objectRowState.h +++ b/p2pvr/lib/objectRowState.h @@ -8,22 +8,23 @@ typedef boost::function<void(const std::string &, bool)> ColumnCreator; typedef boost::function<void(const ColumnCreator &)> ColumnSpecifier; +typedef std::vector<bool> SelectedColumns; -void BindColumns(Slicer::ModelPartPtr, RowState &); +void BindColumns(Slicer::ModelPartPtr, const SelectedColumns &, RowState &); template <typename V> -void BindColumns(RowState & rs, const V & v) +void BindColumns(RowState & rs, const SelectedColumns & sc, const V & v) { - BindColumns(Slicer::ModelPartFor(const_cast<V &>(v)), rs); + BindColumns(Slicer::ModelPartFor(const_cast<V &>(v)), sc, rs); } -void CreateColumns(Slicer::ModelPartPtr, const ColumnCreator &); +SelectedColumns CreateColumns(Slicer::ModelPartPtr, const ColumnCreator &); template <typename V> -void CreateColumns(const ColumnCreator & cc) +SelectedColumns CreateColumns(const ColumnCreator & cc) { V v; - CreateColumns(Slicer::ModelPartFor(v), cc); + return CreateColumns(Slicer::ModelPartFor(v), cc); } template <typename T> |