JNIEXPORT void JNICALL
Java_org_apache_subversion_javahl_SVNClient_getChangelists
(JNIEnv *env, jobject jthis, jstring jroot_path, jobject jchangelists,
 jobject jdepth, jobject jchangelistCallback)
{
  JNIEntry(SVNClient, getChangelist);
  SVNClient *cl = SVNClient::getCppObject(jthis);
  if (cl == NULL)
    {
      JNIUtil::throwError("bad C++ this");
      return;
    }

  JNIStringHolder root_path(jroot_path);
  if (JNIUtil::isExceptionThrown())
    return;

  StringArray changelists(jchangelists);
  if (JNIUtil::isExceptionThrown())
    return;

  ChangelistCallback callback(jchangelistCallback);
  cl->getChangelists(root_path, changelists, EnumMapper::toDepth(jdepth),
                     &callback);
}
Esempio n. 2
0
Juego::Juego(){
	cant_jugadores = 0;
	//Le paso al cargador el numero de mapa
	//que quiero elegir:
	std::string root_path("../../../Mapas/");
	cargador = new Cargador_mapa(root_path.c_str());
	mundo = NULL;
	cargar_factories(cargador);
	jugando_nivel = false;
	fin_partida = false;
	partida_inicializada = false;
}
Esempio n. 3
0
  // On Windows and Linux, root is KZH_DISTANCE_FROM_ROOT directories up from
  // the binary's
  path_t locate_root_directory(const path_t& bin_path) {
    #if KZH_PLATFORM == KZH_PLATFORM_APPLE
      return path_t(bin_path).remove_leaf().make_preferred();
    #else
      path_t root_path(bin_path);

      for (int i = 0; i < KZH_DISTANCE_FROM_ROOT; ++i) {
        root_path = root_path.remove_leaf();
      }

      return root_path.make_preferred();
    #endif
  }
Esempio n. 4
0
bool RGBDGrabberFactory :: createFileGrabbers(const ntk::RGBDGrabberFactory::Params &params, std::vector<GrabberData>& grabbers)
{
    std::string path = params.directory;

    std::vector<std::string> image_directories;

    QDir root_path (path.c_str());
    QStringList devices = root_path.entryList(QStringList("*"), QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name);
    foreach (QString name, devices)
    {
        QString camera_path = root_path.absoluteFilePath(name);
        if (QDir(camera_path).entryList(QStringList("view*"), QDir::Dirs, QDir::Name).size() == 0)
        {
            ntk_warn("Warning, directory %s has no images, skipping.\n", camera_path.toLatin1().constData());
            continue;
        }
        image_directories.push_back(camera_path.toStdString());
    }