⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configuration.cpp

📁 开源的电子海图程序
💻 CPP
📖 第 1 页 / 共 4 页
字号:
        linedrawprop << "SLCONS .35 .67 .34 1 true" << std::endl;        linedrawprop << "SLOTOP .3 .3 0 1 true" << std::endl;        linedrawprop << "SNDWAV .34 .66 .44 1 true" << std::endl;        linedrawprop << "STSLNE .12 .32 .43 1 true" << std::endl;        linedrawprop << "TIDEWY .21 .32 .43 1 true" << std::endl;        linedrawprop << "TSELNE .12 .54 1 1 true" << std::endl;        linedrawprop << "TSSBND .32 .55 .22 1 true" << std::endl;        linedrawprop << "TUNNEL 0 0 0 1 true" << std::endl;        linedrawprop << "VEGATN 0 .5 0 1 true" << std::endl;        linedrawprop << "WATFAL 0 0 .8 1 true" << std::endl;        linedrawprop << "WATTUR .7 .6 .1 1 true" << std::endl;        linedrawprop << "M_SREL .1 .5 .7 1 true" << std::endl;    }    linedrawprop.close();    // create the default objectnames file    filename = dir / "objectnames";    boost::filesystem::ofstream objectnames(filename);    if (!objectnames.is_open()) {        std::cerr << "Configuration::GenerateConfiguration:: "                  << "Error generating objectnames file" << std::endl;        boost::filesystem::remove_all(dir);        return -1;    } else {        objectnames << "ACHARE Anchorage area" << std::endl;        objectnames << "ACHBRT Anchor berth" << std::endl;        objectnames << "ADMARE Administration Area (Named)" << std::endl;        objectnames << "AIRARE Airport/airfield" << std::endl;        objectnames << "BCNCAR Beacon, cardinal" << std::endl;        objectnames << "BCNISD Beacon, isolated danger" << std::endl;        objectnames << "BCNLAT Beacon, lateral" << std::endl;        objectnames << "BCNSAW Beacon, safe water" << std::endl;        objectnames << "BCNSPP Beacon, special purpose/general" << std::endl;        objectnames << "BERTHS Berth" << std::endl;        objectnames << "BOYCAR Buoy, cardinal" << std::endl;        objectnames << "BOYINB Buoy, installation" << std::endl;        objectnames << "BOYISD Buoy, isolated danger" << std::endl;        objectnames << "BOYLAT Buoy, lateral" << std::endl;        objectnames << "BOYSAW Buoy, safe water" << std::endl;        objectnames << "BOYSPP Buoy, special purpose/general" << std::endl;        objectnames << "BRIDGE Bridge" << std::endl;        objectnames << "BUAARE Built-up area" << std::endl;        objectnames << "BUISGL Building, single" << std::endl;        objectnames << "CANALS Canal" << std::endl;        objectnames << "CAUSWY Causeway" << std::endl;        objectnames << "CBLARE Cable area" << std::endl;        objectnames << "CBLOHD Cable, overhead" << std::endl;        objectnames << "CBLSUB Cable, submarine" << std::endl;        objectnames << "CGUSTA Coastguard station" << std::endl;        objectnames << "CHKPNT Checkpoint" << std::endl;        objectnames << "COALNE Coastline" << std::endl;        objectnames << "CONVYR Conveyor" << std::endl;        objectnames << "CONZNE Contiguous zone" << std::endl;        objectnames << "COSARE Continental shelf area" << std::endl;        objectnames << "CRANES Crane" << std::endl;        objectnames << "CTNARE Caution area" << std::endl;        objectnames << "CTRPNT Control point" << std::endl;        objectnames << "CTSARE Cargo transhipment area" << std::endl;        objectnames << "CURENT Current - non-gravitational" << std::endl;        objectnames << "CUSZNE Custom zone" << std::endl;        objectnames << "DAMCON Dam" << std::endl;        objectnames << "DAYMAR Daymark" << std::endl;        objectnames << "DEPARE Depth area" << std::endl;        objectnames << "DEPCNT Depth contour" << std::endl;        objectnames << "DISMAR Distance mark" << std::endl;        objectnames << "DOCARE Dock area" << std::endl;        objectnames << "DRGARE Dredged area" << std::endl;        objectnames << "DRYDOC Dry dock" << std::endl;        objectnames << "DMPGRD Dumping ground" << std::endl;        objectnames << "DYKCON Dyke" << std::endl;        objectnames << "DWRTCL Deep water route centerline" << std::endl;        objectnames << "DWRTPT Deep water route part" << std::endl;        objectnames << "EXEZNE Exclusive economic zone" << std::endl;        objectnames << "FAIRWY Fairway" << std::endl;        objectnames << "FERYRT Ferry route" << std::endl;        objectnames << "FLODOC Floating dock" << std::endl;        objectnames << "FNCLNE Fence/wall" << std::endl;        objectnames << "FOGSIG Fog signal" << std::endl;        objectnames << "FORSTC Fortified structure" << std::endl;        objectnames << "FRPARE Free port area" << std::endl;        objectnames << "FSHFAC Fishing facility" << std::endl;        objectnames << "FSHGRD Fishing ground" << std::endl;        objectnames << "FSHZNE Fishery zone" << std::endl;        objectnames << "GATCON Gate" << std::endl;        objectnames << "GRIDRN Gridiron" << std::endl;        objectnames << "HRBARE Harbour area (administrative)" << std::endl;        objectnames << "HRBFAC Harbour facility" << std::endl;        objectnames << "HULKES Hulk" << std::endl;        objectnames << "ICEARE Ice area" << std::endl;        objectnames << "ICNARE Incineration area" << std::endl;        objectnames << "ISTZNE Inshore traffic zone" << std::endl;        objectnames << "LAKARE Lake" << std::endl;        objectnames << "LNDARE Land area" << std::endl;        objectnames << "LNDELV Land elevation" << std::endl;        objectnames << "LNDMRK Landmark" << std::endl;        objectnames << "LNDRGN Land region" << std::endl;        objectnames << "LIGHTS Light" << std::endl;        objectnames << "LITFLT Light float" << std::endl;        objectnames << "LITVES Light vessel" << std::endl;        objectnames << "LOCMAG Local magnetic anomaly" << std::endl;        objectnames << "LOGPON Log pond" << std::endl;        objectnames << "LOKBSN Lock basin" << std::endl;        objectnames << "MAGVAR Magnetic variation" << std::endl;        objectnames << "MARCUL Marine farm/culture" << std::endl;        objectnames << "MIPARE Military practice area" << std::endl;        objectnames << "MORFAC Mooring/Warping facility" << std::endl;        objectnames << "NAVLNE Navigation line" << std::endl;        objectnames << "OBSTRN Obstruction" << std::endl;        objectnames << "OFSPLF Offshore platform" << std::endl;        objectnames << "OSPARE Offshore production area" << std::endl;        objectnames << "OILBAR Oil barrier" << std::endl;        objectnames << "PILBOP Pilot boarding place" << std::endl;        objectnames << "PILPNT Pile" << std::endl;        objectnames << "PIPARE Pipeline area" << std::endl;        objectnames << "PIPOHD Pipeline, overhead" << std::endl;        objectnames << "PIPSOL Pipeline, submarine/on land" << std::endl;        objectnames << "PONTON Pontoon" << std::endl;        objectnames << "PRCARE Precautionary area" << std::endl;        objectnames << "PRDARE Production/storage area" << std::endl;        objectnames << "PYLONS Pylon/bridge support" << std::endl;        objectnames << "RADLNE Radar line" << std::endl;        objectnames << "RADRNG Radar range" << std::endl;        objectnames << "RADRFL Radar reflector" << std::endl;        objectnames << "RADSTA Radar station" << std::endl;        objectnames << "RAILWY Railway" << std::endl;        objectnames << "RAPIDS Rapids" << std::endl;        objectnames << "RCRTCL Recommended route centerline" << std::endl;        objectnames << "RCTLPT Recommended traffic lane part" << std::endl;        objectnames << "RDOCAL Radio calling-in point" << std::endl;        objectnames << "RDOSTA Radio station" << std::endl;        objectnames << "RECTRC Recommended track" << std::endl;        objectnames << "RESARE Restricted area" << std::endl;        objectnames << "RETRFL Retro-reflector" << std::endl;        objectnames << "RIVERS River" << std::endl;        objectnames << "ROADWY Road" << std::endl;        objectnames << "RSCSTA Rescue station" << std::endl;        objectnames << "RTPBCN Radar transponder beacon" << std::endl;        objectnames << "RUNWAY Runway" << std::endl;        objectnames << "SBDARE Seabed area" << std::endl;        objectnames << "SEAARE Sea area/named water area" << std::endl;        objectnames << "SILTNK Silo/tank" << std::endl;        objectnames << "SISTAT Signal station, traffic" << std::endl;        objectnames << "SISTAW Signal station, warning" << std::endl;        objectnames << "SLCONS Shoreline construction" << std::endl;        objectnames << "SLOTOP Slope topline" << std::endl;        objectnames << "SLOGRD Sloping ground" << std::endl;        objectnames << "SMCFAC Small craft facility" << std::endl;        objectnames << "SOUNDG Sounding" << std::endl;        objectnames << "SNDWAV Sand waves" << std::endl;        objectnames << "SPLARE Sea-plane landing area" << std::endl;        objectnames << "SPRING Spring" << std::endl;        objectnames << "STSLNE Straight territorial sea baseline" << std::endl;        objectnames << "SUBTLN Submarine transit lane" << std::endl;        objectnames << "SWPARE Swept Area" << std::endl;        objectnames << "TESARE Territorial sea area" << std::endl;        objectnames << "TIDEWY Tideway" << std::endl;        objectnames << "TOPMAR Topmark" << std::endl;        objectnames << "TSELNE Traffic separation line" << std::endl;        objectnames << "TSEZNE Traffic separation zone" << std::endl;        objectnames << "TSSBND Traffic separation scheme boundary"                    << std::endl;        objectnames << "TSSCRS Traffic separation scheme crossing"                    << std::endl;        objectnames << "TSSLPT Traffic separation scheme lane part"                    << std::endl;        objectnames << "TSSRON Traffic separation scheme roundabout"                    << std::endl;        objectnames << "TUNNEL Tunnel" << std::endl;        objectnames << "TWRTPT Two-way route part" << std::endl;        objectnames << "UNSARE Unsurveyed area" << std::endl;        objectnames << "UWTROC Underwater/awash rock" << std::endl;        objectnames << "VEGATN Vegetation" << std::endl;        objectnames << "WATFAL Waterfall" << std::endl;        objectnames << "WATTUR Water turbulence" << std::endl;        objectnames << "WEDKLP Weed/Kelp" << std::endl;        objectnames << "WRECKS Wreck" << std::endl;        objectnames << "C_AGGR Aggregation" << std::endl;        objectnames << "C_ASSO Association" << std::endl;        objectnames << "M_ACCY Accuracy of data" << std::endl;        objectnames << "M_COVR Coverage" << std::endl;        objectnames << "M_CSCL Compilation scale of data" << std::endl;        objectnames << "M_HOPA Horizontal datum shift parameters" << std::endl;        objectnames << "M_NPUB Nautical publication information" << std::endl;        objectnames << "M_NSYS Navigational system of marks" << std::endl;        objectnames << "M_QUAL Quality of data" << std::endl;        objectnames << "M_SDAT Sounding datum" << std::endl;        objectnames << "M_SREL Survey reliability" << std::endl;        objectnames << "M_VDAT Vertical datum of data" << std::endl;        objectnames << "T_HMON Tide - harmonic prediction" << std::endl;        objectnames << "T_NHMN Tide - non-harmonic prediction" << std::endl;        objectnames << "T_TIMS Tide - time series" << std::endl;        objectnames << "TS_FEB Tidal stream - flood/ebb" << std::endl;        objectnames << "TS_PAD Tidal stream panel data" << std::endl;        objectnames << "TS_PNH Tidal stream - non-harmonic prediction"                    << std::endl;        objectnames << "TS_PRH Tidal stream - harmonic prediction" << std::endl;        objectnames << "TS_TIS Tidal stream - time series" << std::endl;    }    objectnames.close();    // create the default pointcvg file    filename = dir / "pointcvg";    boost::filesystem::ofstream pointcvg(filename);    if (!pointcvg.is_open()) {        std::cerr << "Configuration::GenerateConfiguration:: "                  << "Error generating pointcvg file" << std::endl;        boost::filesystem::remove_all(dir);        return -1;    } else {        pointcvg << "ACHARE file.cvg true" << std::endl;        pointcvg << "ACHBRT file.cvg true" << std::endl;        pointcvg << "AIRARE file.cvg true" << std::endl;        pointcvg << "BCNCAR file.cvg true" << std::endl;        pointcvg << "BCNISD file.cvg true" << std::endl;        pointcvg << "BCNLAT file.cvg true" << std::endl;        pointcvg << "BCNSAW file.cvg true" << std::endl;        pointcvg << "BCNSPP file.cvg true" << std::endl;        pointcvg << "BERTHS file.cvg true" << std::endl;        pointcvg << "BOYCAR file.cvg true" << std::endl;        pointcvg << "BOYINB file.cvg true" << std::endl;        pointcvg << "BOYISD file.cvg true" << std::endl;        pointcvg << "BOYLAT file.cvg true" << std::endl;        pointcvg << "BOYSAW file.cvg true" << std::endl;        pointcvg << "BOYSPP file.cvg true" << std::endl;        pointcvg << "BRIDGE file.cvg true" << std::endl;        pointcvg << "BUAARE file.cvg true" << std::endl;        pointcvg << "BUISGL file.cvg true" << std::endl;        pointcvg << "CGUSTA file.cvg true" << std::endl;        pointcvg << "CHKPNT file.cvg true" << std::endl;        pointcvg << "CRANES file.cvg true" << std::endl;        pointcvg << "CTNARE file.cvg true" << std::endl;        pointcvg << "CTRPNT file.cvg true" << std::endl;        pointcvg << "CTSARE file.cvg true" << std::endl;        pointcvg << "CURENT file.cvg true" << std::endl;        pointcvg << "DAMCON file.cvg true" << std::endl;        pointcvg << "DAYMAR file.cvg true" << std::endl;        pointcvg << "DISMAR file.cvg true" << std::endl;        pointcvg << "DMPGRD file.cvg true" << std::endl;        pointcvg << "FOGSIG file.cvg true" << std::endl;        pointcvg << "FORSTC file.cvg true" << std::endl;        pointcvg << "FSHFAC file.cvg true" << std::endl;        pointcvg << "GATCON file.cvg true" << std::endl;        pointcvg << "GRIDRN file.cvg true" << std::endl;        pointcvg << "HRBFAC file.cvg true" << std::endl;        pointcvg << "HULKES file.cvg true" << std::endl;        pointcvg << "ICNARE file.cvg true" << std::endl;        pointcvg << "LNDARE file.cvg true" << std::endl;        pointcvg << "LNDELV file.cvg true" << std::endl;        pointcvg << "LNDMRK file.cvg true" << std::endl;        pointcvg << "LNDRGN file.cvg true" << std::endl;        pointcvg << "LIGHTS file.cvg true" << std::endl;        pointcvg << "LITFLT file.cvg true" << std::endl;        pointcvg << "LITVES file.cvg true" << std::endl;        pointcvg << "LOCMAG file.cvg true" << std::endl;        pointcvg << "LOGPON file.cvg true" << std::endl;        pointcvg << "MAGVAR file.cvg true" << std::endl;        pointcvg << "MARCUL file.cvg true" << std::endl;        pointcvg << "MIPARE file.cvg true" << std::endl;        pointcvg << "MORFAC file.cvg true" << std::endl;        pointcvg << "OBSTRN file.cvg true" << std::endl;        pointcvg << "OFSPLF file.cvg true" << std::endl;        pointcvg << "PILBOP file.cvg true" << std::endl;        pointcvg << "PILPNT file.cvg true" << std::endl;        pointcvg << "PIPARE file.cvg true" << std::endl;        pointcvg << "PIPSOL file.cvg true" << std::endl;        pointcvg << "PRCARE file.cvg true" << std::endl;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -