#endif
// Constructor
-SGStarData::SGStarData() {
+SGStarData::SGStarData() :
+ nstars(0)
+{
}
-SGStarData::SGStarData( SGPath path ) {
+SGStarData::SGStarData( SGPath path ) :
+ nstars(0)
+{
data_path = SGPath( path );
load();
}
// default constructor
-SGPath::SGPath() {
- path = "";
+SGPath::SGPath() :
+ path("")
+{
}
// create a path based on "path"
-SGPath::SGPath( const string p ) {
+SGPath::SGPath( const string p ) :
+ path("")
+{
set( p );
}
inline long get_usec() const { return usec; }
};
-inline SGTimeStamp::SGTimeStamp() {
+inline SGTimeStamp::SGTimeStamp() :
+ seconds(0),
+ usec(0)
+{
}
inline SGTimeStamp::SGTimeStamp( const long s, const long u ) {