You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
347 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #include "basicObject.h"
  2. #include "../../alg/generic/md5.h"
  3. U32 Global_Basic_Objects_Enumerator = 1;
  4. basicObject::basicObject() :
  5. basicValidatable()
  6. {
  7. m_nID = Global_Basic_Objects_Enumerator++;
  8. char Buffer[33];
  9. sprintf(Buffer, "%d", m_nID);
  10. m_sUID = MD5String(Buffer);
  11. }
  12. basicObject::~basicObject()
  13. {
  14. if (m_sUID)
  15. {
  16. free(m_sUID);
  17. }
  18. }