예제 #1
0
파일: Node_Daemon.cpp 프로젝트: SEDS/CUTS
  void operator () (const value_type & value)
  {
    CUTS_Variable_Importer_Strategy * strategy = 0;

    if (value->type () == CUTS::schemas::FileType::text)
    {
      static CUTS_Text_Variable_Importer text_import;
      strategy = &text_import;
    }

    if (0 != strategy)
    {
      int retval =
        strategy->handle_import (value->location ().c_str (),
                                 this->env_table_);

      if (0 != retval)
        ACE_ERROR ((LM_ERROR,
                    ACE_TEXT ("%T (%t) - %M - failed to import variables from %s\n"),
                    value->location ().c_str ()));
    }
  }