#include <iostream>
#include <StringObserverImpl.h>


void StringObserverImpl::update()
{
   char* cur_value = mSubject->getValue();

   std::cout << "Current string value is now '" << cur_value << "'\n";
   delete cur_value;
}

#include <vpr/Util/Debug.h>
#include <StringObserverImpl.h>


void StringObserverImpl::update()
{
   char* cur_value = mSubject->getValue();

   vprDEBUG(vprDBG_ALL, vprDBG_CRITICAL_LVL)
      << "Current string value is now '" << cur_value << "'\n"
      << vprDEBUG_FLUSH;
   delete cur_value;
}

Use vprDEBUG instead of std::cout to print the current string value.
Use vprDEBUG instead of std::cout to print the current string value.


git-svn-id: 769d22dfa2d22aad706b9a451492fb87c0735f19@11032 08b38cba-cd3b-11de-854e-f91c5b6e4272
