예제 #1
0
파일: sets.c 프로젝트: NowakAydm/anowak
void	add_r_dir(t_dir *dir, char *full_path, char **tab)
{
	t_dir	*r_dir;

	r_dir = set_dir_name(full_path, dir->ls);
	r_dir->is_rr = 1;
	r_dir->modif_date = ft_atod(tab[6]);
	if ((dir->ls)->t)
		ft_btree_insert(&dir->rr_dir, r_dir, dir_date_comp);
	else
		ft_btree_insert(&dir->rr_dir, r_dir, dir_name_comp);
}
예제 #2
0
  dir_cpi_impl::dir_cpi_impl (proxy                * p, 
                              cpi_info       const & info,
                              saga::ini::ini const & glob_ini,
                              saga::ini::ini const & adap_ini,
                              boost::shared_ptr<saga::adaptor> adaptor)

      : directory_cpi (p, info, adaptor, cpi::Noflags), 
        dserv_( serv_.get_sector_dir_service())
  {
    std::string error ; 
    adaptor_data_t            adata (this);
    directory_instance_data_t idata (this);

    /* Parse the location and open the directory 
     */
    location =  idata->location_  ; 
    set_dir_name() ; 
    s_ = p->get_session() ; 
    mode = idata->mode_ ; 


    /* 
    if( !adata->get_auth_flag() )
    {
       bool auth = adata->authenticate( s_, location, mode, serv_, glob_ini, adap_ini ) ; 
       if( !auth )
       {
          SAGA_ADAPTOR_THROW ("Could not authenticate with the Sector/Sphere Master Server.", saga::NoSuccess ) ; 
       }
       adata->set_auth_flag() ; 
    }
    */

    bool open = open_dir( error ) ; 
    if( !open )
    {
      SAGA_ADAPTOR_THROW ( error , saga::NoSuccess ) ; 
    }

  }