Ejemplo n.º 1
0
  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 ()));
    }
  }
Ejemplo n.º 2
0
 void operator () (value_type & port)
 {
   port->location (this->next_);
   this->next_.shift (0, GME_PORT_HEIGHT + GME_PORT_PADDING_Y);
 }