Skip to content
Snippets Groups Projects
Commit 025f675a authored by Riccardo Maria Bianchi's avatar Riccardo Maria Bianchi :sunny: Committed by Johannes Junggeburth
Browse files

Add getters to retrieve number of shapes with the new DB schema

parent e0245cbe
Branches
Tags
1 merge request!327New schema for the GeoModel SQLite database and updated I/O
......@@ -95,6 +95,7 @@ class WriteGeoModel : public GeoNodeAction {
/// - 0 : Default
/// - 1 : Verbose
/// - 2 : Debug
/// - 3 : Deep Debug
void setLogLevel(unsigned loglevel) { m_loglevel = loglevel; };
virtual void handlePhysVol(
......@@ -146,10 +147,26 @@ class WriteGeoModel : public GeoNodeAction {
};
unsigned long getNFunctions() { return m_functions.size(); };
unsigned long getNNameTags() { return m_nameTags.size(); };
unsigned long getNShapes() { return m_shapes.size(); };
unsigned long getNChildrenConnections() {
return m_childrenPositions.size();
};
unsigned long getNShapes() { return m_shapes.size(); }; // TODO: to be removed later
unsigned long getNShapes_Box() { return m_shapes_Box.size(); };
unsigned long getNShapes_Cons() { return m_shapes_Cons.size(); };
unsigned long getNShapes_Para() { return m_shapes_Para.size(); };
unsigned long getNShapes_Pcon() { return m_shapes_Pcon.size(); };
unsigned long getNShapes_Pgon() { return m_shapes_Pgon.size(); };
unsigned long getNShapes_SimplePolygonBrep() { return m_shapes_SimplePolygonBrep.size(); };
unsigned long getNShapes_Trap() { return m_shapes_Trap.size(); };
unsigned long getNShapes_Trd() { return m_shapes_Trd.size(); };
unsigned long getNShapes_Tube() { return m_shapes_Tube.size(); };
unsigned long getNShapes_Tubs() { return m_shapes_Tubs.size(); };
unsigned long getNShapes_TwistedTrap() { return m_shapes_TwistedTrap.size(); };
unsigned long getNShapes_UnidentifiedShape() { return m_shapes_UnidentifiedShape.size(); };
unsigned long getNShapes_Shift() { return m_shapes_Shift.size(); };
unsigned long getNShapes_Union() { return m_shapes_Union.size(); };
unsigned long getNShapes_Intersection() { return m_shapes_Intersection.size(); };
unsigned long getNShapes_Subtraction() { return m_shapes_Subtraction.size(); };
private:
// define copy constructor, needed for the GeoModelAction subclass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment