Ignore:
Timestamp:
07/24/12 10:36:19 (13 years ago)
Author:
Mathieu Morlighem
Message:

merged trunk-jpl and trunk for revision 12703

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/KML/KML_Point.cpp

    r11237 r12706  
    44
    55/*Headers:*/
    6 /*{{{1*/
     6/*{{{*/
    77#ifdef HAVE_CONFIG_H
    88        #include <config.h>
     
    2222
    2323/*Constructors/destructor/copy*/
    24 /*FUNCTION KML_Point::KML_Point(){{{1*/
     24/*FUNCTION KML_Point::KML_Point(){{{*/
    2525KML_Point::KML_Point(){
    2626
     
    3434}
    3535/*}}}*/
    36 /*FUNCTION KML_Point::~KML_Point(){{{1*/
     36/*FUNCTION KML_Point::~KML_Point(){{{*/
    3737KML_Point::~KML_Point(){
    3838
     
    4343
    4444/*Other*/
    45 /*FUNCTION KML_Point::Echo {{{1*/
     45/*FUNCTION KML_Point::Echo {{{*/
    4646void  KML_Point::Echo(){
    4747
    4848        bool  flag=true;
    4949
    50         _printf_(flag,"KML_Point:\n");
     50        if(flag) _pprintLine_("KML_Point:");
    5151        KML_Geometry::Echo();
    5252
    53         _printf_(flag,"       extrude: %s\n"         ,(extrude ? "true" : "false"));
    54         _printf_(flag,"       altmode: \"%s\"\n"     ,altmode);
    55         _printf_(flag,"        coords: (%g,%g,%g)\n" ,coords[0],coords[1],coords[2]);
     53        if(flag) _pprintLine_("       extrude: " << (extrude ? "true" : "false"));
     54        if(flag) _pprintLine_("       altmode: \"" << altmode << "\"");
     55        if(flag) _pprintLine_("        coords: (" << coords[0] << "," << coords[1] << "," << coords[2] << ")");
    5656
    5757        return;
    5858}
    5959/*}}}*/
    60 /*FUNCTION KML_Point::DeepEcho {{{1*/
     60/*FUNCTION KML_Point::DeepEcho {{{*/
    6161void  KML_Point::DeepEcho(){
    6262
     
    6868}
    6969/*}}}*/
    70 /*FUNCTION KML_Point::DeepEcho {{{1*/
     70/*FUNCTION KML_Point::DeepEcho {{{*/
    7171void  KML_Point::DeepEcho(const char* indent){
    7272
    7373        bool  flag=true;
    7474
    75         _printf_(flag,"%sKML_Point:\n",indent);
     75        if(flag) _pprintLine_(indent << "KML_Point:");
    7676        KML_Geometry::DeepEcho(indent);
    7777
    78         _printf_(flag,"%s       extrude: %s\n"         ,indent,(extrude ? "true" : "false"));
    79         _printf_(flag,"%s       altmode: \"%s\"\n"     ,indent,altmode);
    80         _printf_(flag,"%s        coords: (%g,%g,%g)\n" ,indent,coords[0],coords[1],coords[2]);
     78        if(flag) _pprintLine_(indent << "       extrude: " << (extrude ? "true" : "false"));
     79        if(flag) _pprintLine_(indent << "       altmode: \"" << altmode << "\"");
     80        if(flag) _pprintLine_(indent << "        coords: (" << coords[0] << "," << coords[1] << "," << coords[2] << ")");
    8181
    8282        return;
    8383}
    8484/*}}}*/
    85 /*FUNCTION KML_Point::Write {{{1*/
     85/*FUNCTION KML_Point::Write {{{*/
    8686void  KML_Point::Write(FILE* filout,const char* indent){
    8787
     
    103103}
    104104/*}}}*/
    105 /*FUNCTION KML_Point::Read {{{1*/
     105/*FUNCTION KML_Point::Read {{{*/
    106106void  KML_Point::Read(FILE* fid,char* kstr){
    107107
     
    126126                }
    127127                else if (!strncmp(kstri,"</",2))
    128                         _error_("KML_Point::Read -- Unexpected closing tag %s.\n",kstri);
     128                  {_error2_("KML_Point::Read -- Unexpected closing tag " << kstri << ".\n");}
    129129                else if (strncmp(kstri,"<",1))
    130                         _error_("KML_Point::Read -- Unexpected field \"%s\".\n",kstri);
     130                  {_error2_("KML_Point::Read -- Unexpected field \"" << kstri << "\".\n");}
    131131
    132132                else if (!strcmp(kstri,"<extrude>"))
    133                         KMLFileTokenParse(&extrude   ,
    134                                                           kstri,
    135                                                           fid);
     133                        KMLFileTokenParse(&extrude   , kstri, fid);
    136134                else if (!strcmp(kstri,"<altitudeMode>"))
    137                         KMLFileTokenParse( altmode   ,NULL,KML_POINT_ALTMODE_LENGTH,
    138                                                           kstri,
    139                                                           fid);
     135                        KMLFileTokenParse( altmode   ,NULL,KML_POINT_ALTMODE_LENGTH, kstri, fid);
    140136                else if (!strcmp(kstri,"<coordinates>"))
    141                         KMLFileTokenParse(&pcoords   ,NULL,3,
    142                                                           kstri,
    143                                                           fid);
     137                        KMLFileTokenParse(&pcoords   ,NULL,3, kstri, fid);
    144138
    145139                else if (!strncmp(kstri,"<",1))
     
    158152}
    159153/*}}}*/
    160 /*FUNCTION KML_Point::WriteExp {{{1*/
     154/*FUNCTION KML_Point::WriteExp {{{*/
    161155void  KML_Point::WriteExp(FILE* fid,const char* nstr,int sgn,double cm,double sp){
    162156
Note: See TracChangeset for help on using the changeset viewer.