What was the raionale behind having a function by the name IsDirty() in CField Class in MFC.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The terms “clean” and “dirty” are quite commonly used in data processing. When you receive a copy of some data structure from a persistent storage like a data base or file system, it is said to be “clean”, unmodified, not touched. Once you are done with the data, the backing storage does not need to be updated for clean data.
Once you edit your copy, it gets “dirty” and the changes you made must be saved back to the persistent storage after you’re done, otherwise they would be lost.