I want to modify a class in a software.
the class is
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
class Chunk
{
ChunkID c_id; ///< The ID number (sequence number) of the chunk
Time c_initiation_time; ///< The time at which the chunk becomes available at the source
public:
/// The constructor for a chunk
Chunk(size_t id, Time time) : c_id(id), c_initiation_time(time) {}
/// Get the chunk ID
inline ChunkID id() { return c_id; }
/// Get the chunk initiation time
inline Time initiation_time() { return c_initiation_time; }
};
I want to add two member variables
and some related member functions
and I need modify some other classes or statement which use the class
so, which choice is better for such kind of modification?