Exemplo n.º 1
0
UAS_Pointer<UAS_Common> &
Mark_mmdb::doc_ptr()
{
  // If the doc_ptr isn't known yet, find it. 
  if (f_doc_ptr == (const int)NULL)
    {
      UAS_String url = "mmdb:LOCATOR=";

      UAS_String real_uid(f_user_mark->node_locator());
      UAS_String infobase_id, section_id;
      real_uid.split('/', infobase_id, section_id);

      // Just use section id for now
      // NOTE: We may need to use infobase id as well to precisely
      //       identify the section
      url = url + section_id;

      f_doc_ptr = UAS_Common::create (url);

#ifdef FUJITSU_OLIAS
      // check to see if the section is in the same corpus
      // as the one in which it has been created.
      if (UAS_String(f_doc_ptr->bid()) != infobase_id)
	f_doc_ptr = NULL;
#endif
    }

  return (f_doc_ptr);
}
Exemplo n.º 2
0
inline app::uid uid() noexcept { return real_uid(); }