PstLstDataPersist is the persistent IPstLstData implementation.
| PstLstDataPersist::PstLstDataPersist | ( | IPMUnknown * | boss | ) | |
Constructor.
- Parameters
| boss | interface ptr from boss object on which this interface is aggregated. |
| const WideString & PstLstDataPersist::GetName | ( | void | | ) | |
| virtual |
This function returns its only data member, fName.
- Returns
- WideString the data member this interface carries.
Implements IPstLstData.
| UID PstLstDataPersist::GetParent | ( | | ) | const |
| virtual |
Because this is a persistent interface, it must support the ReadWrite method. This method is used for both writing information out to the database and reading information in from the database.
Note: the first thing we read/write here is a version number. It is used to identify which plug-in is used to write out this IPstLstData. Since this is the first version of the PstLst plug-in, thus the version number is 1, and then followed by the IPstLstData. Later if there is a newer version of this plug-in which will write out an extra field of data, then we can just come to this routine, and check the version number of the doc, and then read in the data accordingly. this will make sure the newer plug-in is backward compatible with an older version of document. Lastly, since the version number should be the first thing to read in for this interface, all the new data should be append at the bottom.
- Parameters
| stream | contains the stream to be written or read. |
| implementation | the implementation ID. |
| void PstLstDataPersist::SetName | ( | const WideString & | theData | ) | |
| virtual |
This function set its only data member with the parameter passed in.
- Parameters
Implements IPstLstData.
| void PstLstDataPersist::SetParent | ( | const UID | parent | ) | |
| virtual |