Osiris-Testseite: Unterschied zwischen den Versionen

Aus Physik
Zur Navigation springen Zur Suche springen
 
Zeile 1: Zeile 1:
==Eclipse ITP Edition==
+
==C - C++ Vergleich==
  +
===C-Version:===
   
  +
char point_style[GP_CMD_SIZE];
Wir stellen Ihnen eine Eclipse Edition zum Download zur Verfügung, die die gleiche Konfiguration, wie die Version am Institut aufweist.
 
  +
char * token_pointer = strchr(plot_style, ' ');
  +
int style_str_len;
  +
if (token_pointer != NULL)
  +
{
  +
style_str_len = token_pointer - plot_style;
  +
}
  +
else
  +
{
  +
style_str_len = strlen(plot_style);
  +
}
  +
strncpy(point_style, plot_style, style_str_len);
  +
point_style[style_str_len] = 0;
  +
  +
if (strcmp(point_style, "lines") &&
  +
strcmp(point_style, "points") &&
  +
strcmp(point_style, "linespoints") &&
  +
strcmp(point_style, "impulses") &&
  +
strcmp(point_style, "dots") &&
  +
strcmp(point_style, "steps") &&
  +
strcmp(point_style, "errorbars") &&
  +
strcmp(point_style, "boxes") &&
  +
strcmp(point_style, "boxerrorbars"))
  +
{
  +
fprintf(stderr, "warning: unknown requested style: using points\n") ;
  +
strcpy(h->pstyle, "points") ;
  +
} else {
  +
strcpy(h->pstyle, plot_style) ;
  +
}
   
  +
===C++ Version===
Diese beinhaltet folgende Plugins:
 
  +
string linestylestr = stylestr.substr(0, stylestr.find(" "));
 
  +
{| border=1 cellspacing=0 cellpadding=5 align=center
 
  +
if (linestylestr != "lines" &&
|Tool ||
 
  +
linestylestr != "points" &&
|Beschreibung ||
 
  +
linestylestr != "linespoints" &&
Tutorial
 
  +
linestylestr != "impulses" &&
|-
 
  +
linestylestr != "dots" &&
|[http://www.eclipse.org/eclipse/ Eclipse SDK 3.1M5] ||
 
  +
linestylestr != "steps" &&
|Die eclipse-Plattform zur Erstellung von Java Anwendungen und Plugins für die Eclipse-Plattform ||
 
  +
linestylestr != "errorbars" &&
* [[Grundsätzliches Arbeiten mit Eclipse]]
 
  +
linestylestr != "boxes" &&
* [[Eclipse als JAVA IDE]]
 
  +
linestylestr != "boxerrorbars")
* [[Eclipse als Plugin-Entwicklungsumgebung]]
 
  +
this->pstyle = string("points");
* [[Eclipse als CVS Browser]]
 
  +
else
 
  +
this->pstyle = stylestr;
|-
 
|[http://pydev.sourceforge.net/ pydev 0.09] ||
 
|Eine Entwicklungsumgebung zur Erstellung von Python Programmen ||
 
* [[Eclipse als Python IDE]]
 
|-
 
|[http://download.eclipse.org/tools/emf/scripts/home.php Examples for Eclipse Modelling Framework 2.01] ||
 
|Beispiele zum Eclipse Modelling Framework ||
 
 
|-
 
|[http://download.eclipse.org/tools/emf/scripts/home.php EMF SDK 2.01] ||
 
|Das Eclipse Modelling Framework SDK ||
 
 
|-
 
|[http://download.eclipse.org/eclipse/downloads/drops/R-2.1-200303272130/index.php Eclipse FTP und WEBDAV Support] ||
 
|Support von FTP und WEBDAV direkt aus der Eclipse Umgebung ||
 
 
|-
 
|[http://www.eclipse.org/gef/ GEF SDK 3.01] ||
 
|Das Graphical Editing Framework SDK ||
 
 
|-
 
|[http://www.eclipse.org/gef/ GEF Logic Example 3.01] ||
 
|Beispiel zum Graphical Editing Framework SDK ||
 
 
|-
 
|[http://www.eclipse.org/ve/ Visual Editor SDK 1.0.1] ||
 
|Ein graphischer Editor zur Erstellung von Benutzeroberflächen mit SWING und SWT ||
 
 
|-
 
|[http://www.eclipse.org/cdt/ Eclipse C/C++ Tooling SDK 2.1.0 ] ||
 
|C/C++ Entwicklungsumgebung für Eclipse ||
 
* [[Eclipse als C IDE]]
 
 
|-
 
|web tools project ||
 
| ||
 
 
|-
 
|XML Modelling ||
 
| ||
 
 
|-
 
|Photran ||
 
| ||
 
 
|-
 
|mediawiki ||
 
| ||
 
 
|-
 
|e-p-i-c ||
 
| ||
 
|}
 

Aktuelle Version vom 20. März 2007, 09:36 Uhr

C - C++ Vergleich

C-Version:

   char point_style[GP_CMD_SIZE];
   char * token_pointer = strchr(plot_style, ' ');
   int style_str_len;
   if (token_pointer != NULL)
   {
       style_str_len = token_pointer - plot_style;
   }
   else
   {
       style_str_len = strlen(plot_style);
   }
   strncpy(point_style, plot_style, style_str_len);
   point_style[style_str_len] = 0;

   if (strcmp(point_style, "lines") &&
       strcmp(point_style, "points") &&
       strcmp(point_style, "linespoints") &&
       strcmp(point_style, "impulses") &&
       strcmp(point_style, "dots") &&
       strcmp(point_style, "steps") &&
       strcmp(point_style, "errorbars") &&
       strcmp(point_style, "boxes") &&
       strcmp(point_style, "boxerrorbars")) 
   {
           fprintf(stderr, "warning: unknown requested style: using points\n") ;
           strcpy(h->pstyle, "points") ;
   } else {
       strcpy(h->pstyle, plot_style) ;
   }

C++ Version

   string linestylestr = stylestr.substr(0, stylestr.find(" "));

   if (linestylestr != "lines" &&
       linestylestr != "points" &&
       linestylestr != "linespoints" &&
       linestylestr != "impulses" &&
       linestylestr != "dots" &&
       linestylestr != "steps" &&
       linestylestr != "errorbars" &&
       linestylestr != "boxes" &&
       linestylestr != "boxerrorbars")
       this->pstyle = string("points");
   else
       this->pstyle = stylestr;