dirtynode.cpp 774 B

123456789101112131415161718192021222324252627282930
  1. #include "dirtynode.h"
  2. DirtyNode::DirtyNode()
  3. {
  4. m_bIsDirtyNode = false;
  5. }
  6. void DirtyNode:: setID(QString sId)
  7. {
  8. LAYOUT_ASSERT((sId.trimmed().isEmpty() != true),
  9. LayoutException(__FUNCTION__,LayoutExceptionEnum::INVALID_PARAMETER,EMPTY_ID_FOUND,NODE));
  10. // if((sId.trimmed().isEmpty() == true))
  11. // {
  12. // throw LayoutException(__FUNCTION__,ExceptionEnum::INVALID_PARAMETER,EMPTY_ID_FOUND,NODE);
  13. // }
  14. m_sId = sId;
  15. }
  16. QString DirtyNode::getID()
  17. {
  18. LAYOUT_ASSERT((m_sId != EMPTY_STRING_VALUE),
  19. LayoutException(__FUNCTION__,
  20. LayoutExceptionEnum::INVALID_PARAMETER,
  21. EMPTY_ID_FOUND,
  22. NODE));
  23. return m_sId;
  24. }