openModeller  Version 1.5.0
om_console.cpp File Reference
#include <openmodeller/om.hh>
#include <openmodeller/Configuration.hh>
#include <openmodeller/os_specific.hh>
#include "request_file.hh"
#include "om_cmd_utils.hh"
#include <istream>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <string>
#include <stdexcept>
Include dependency graph for om_console.cpp:

Go to the source code of this file.

Functions

int showAlgorithms (AlgMetadata const **availables)
 
AlgMetadata const * readAlgorithm (AlgMetadata const **availables)
 
int readParameters (AlgParameter *result, AlgMetadata const *metadata)
 
char * extractParameter (char *name, int nvet, char **vet)
 
void mapCallback (float progress, void *extra_param)
 
void modelCallback (float progress, void *extra_param)
 
int main (int argc, char **argv)
 

Function Documentation

char * extractParameter ( char *  id,
int  nvet,
char **  vet 
)

Search for 'id' in the 'nvet' elements of the vector 'vet'. If the string 'id' is in the begining of some string vet[i] then returns a pointer to the next character of vet[i], otherwise returns 0.

Definition at line 409 of file om_console.cpp.

void mapCallback ( float  progress,
void *  extra_param 
)

Shows the map creation progress.

Definition at line 440 of file om_console.cpp.

References Log::info(), and Log::instance().

Referenced by main().

Here is the call graph for this function:

void modelCallback ( float  progress,
void *  extra_param 
)

Shows the map creation progress.

Definition at line 428 of file om_console.cpp.

References Log::info(), and Log::instance().

Referenced by main().

Here is the call graph for this function:

AlgMetadata const * readAlgorithm ( AlgMetadata const **  availables)

Definition at line 287 of file om_console.cpp.

References showAlgorithms().

Referenced by main().

Here is the call graph for this function:

int showAlgorithms ( AlgMetadata const **  availables)

openModeller console interface.

Author
Mauro E S Muņoz (mauro.nosp@m.@cri.nosp@m.a.org.nosp@m..br)
Id:
om_console.cpp 5981 2014-04-28 22:02:06Z rdg

LICENSE INFORMATION

Copyright(c) 2003 by CRIA - Centro de Referencia em Informacao Ambiental

http://www.cria.org.br

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details:

http://www.gnu.org/copyleft/gpl.html

Definition at line 257 of file om_console.cpp.

References metadata, and AlgMetadata::name.

Referenced by readAlgorithm().