packages/MC/mc/Box_Shape.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Constructor.  Builds from a packed buffer.
 */
\brief Constructor.  Builds from a packed buffer.
\ brief Constructor . Builds from a packed buffer .
Box_Shape::Box_Shape(Buffer &buffer)
{
    profugus::Unpacker u;
    u.set_buffer(buffer.size(), &buffer[0]);
    u >> d_lox >> d_loy >> d_loz >> d_Dx >> d_Dy >> d_Dz;
    REQUIRE(d_Dx >= 0.0);
    REQUIRE(d_Dy >= 0.0);
    REQUIRE(d_Dz >= 0.0);
}
Box_Shape :: Box_Shape ( Buffer & buffer ) { profugus :: Unpacker u ; u . set_buffer ( buffer . size ( ) , & buffer [ 0 ] ) ; u >> d_lox >> d_loy >> d_loz >> d_Dx >> d_Dy >> d_Dz ; REQUIRE ( d_Dx >= 0.0 ) ; REQUIRE ( d_Dy >= 0.0 ) ; REQUIRE ( d_Dz >= 0.0 ) ; }
\brief Constructor.
\ brief Constructor .
// Build the unpacker // Get the data