Files
envi-code/SourceCode/Code2026/EarthWormCmd/stakeOper.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

55 lines
1.1 KiB
C++

#pragma once
#include <string>
#include <sstream>
#include <vector>
#include <map>
#include <set>
#include <functional>
#include <algorithm>
#if defined(UNICODE) || defined(_UNICODE)
typedef std::wstring string;
typedef std::wstringstream stringstream;
typedef std::wfstream fstream;
#else
typedef std::string string;
typedef char cchar;
typedef const char *LPCTSTR;
typedef std::stringstream stringstream;
typedef std::fstream fstream;
#endif
template <class T_out, class T_in>
T_out _convert_(const T_in &v)
{
stringstream s;
s << v;
T_out result;
s >> result;
return result;
}
namespace StakeOper
{
void generateCenterLineOfRoad();
void generateCenterLineOfRoadByPoint();
void appendDwgCuter_ZT();
void appendDwgCuter_ZD();
void addStake();
void splite3DPolyline();
void spliteCenterLine();
void mapStack2Polyline();
void generateStake();
// 通过点选绘制管廊红线
void drawRedLineByCustom();
void modifyGradient();
void stretchEwByAngle();
void ew_test();
void extractStakeElevation();
void extractElevationByDwg();
void generateReferenceCurve();
}