copy_constructor

Copy all project data from a source P2Project object to a sink P2Project object.

When the source project object contains resource information, this is also copied. Therefore, this function should be called in conjunction with calling the P2Schedule:copy_constructor and P2Resource:copy_constructor functions to copy all the data from one project, including schedule and resource information, into another one. The copy constructors should be called in the correct sequence, i.e. first the P2Project function, then the P2Schedule function and finally the P2Resource function.

Parameters: 
I/O Type Name Description
input project source project a source P2Project object containing the data
input project sink project a sink P2Project receiving the data

 

Example: 
function ()
        io.write('\n')
end
Class: 
P2Project