本文整理汇总了C++中wp_vector类的典型用法代码示例。如果您正苦于以下问题:C++ wp_vector类的具体用法?C++ wp_vector怎么用?C++ wp_vector使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了wp_vector类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: TestWinPilot
static void
TestWinPilot(wp_vector org_wp)
{
Waypoints way_points;
if (!TestWayPointFile(_T("test/data/waypoints.dat"), way_points,
org_wp.size())) {
skip(10 * org_wp.size(), 0, "opening waypoint file failed");
return;
}
wp_vector::iterator it;
for (it = org_wp.begin(); it < org_wp.end(); it++) {
const Waypoint *wp = GetWayPoint(*it, way_points);
TestWinPilotWayPoint(*it, wp);
}
}
开发者ID:galippi,项目名称:xcsoar,代码行数:16,代码来源:TestWayPointFile.cpp
示例2: TestOzi
static void
TestOzi(wp_vector org_wp)
{
Waypoints way_points;
if (!TestWaypointFile(_T("test/data/waypoints_ozi.wpt"), way_points,
org_wp.size())) {
skip(3 * org_wp.size(), 0, "opening waypoint file failed");
return;
}
wp_vector::iterator it;
for (it = org_wp.begin(); it < org_wp.end(); it++) {
trim_inplace(it->name);
GetWaypoint(*it, way_points);
}
}
开发者ID:macsux,项目名称:XCSoar,代码行数:16,代码来源:TestWaypointReader.cpp
示例3: TestFS_UTM
static void
TestFS_UTM(wp_vector org_wp)
{
Waypoints way_points;
if (!TestWaypointFile(_T("test/data/waypoints_utm.wpt"), way_points,
org_wp.size())) {
skip(3 * org_wp.size(), 0, "opening waypoint file failed");
return;
}
wp_vector::iterator it;
for (it = org_wp.begin(); it < org_wp.end(); it++) {
if (it->name.length() > 8)
it->name = it->name.erase(8);
trim_inplace(it->name);
GetWaypoint(*it, way_points);
}
}
开发者ID:macsux,项目名称:XCSoar,代码行数:18,代码来源:TestWaypointReader.cpp
示例4: TestZander
static void
TestZander(wp_vector org_wp)
{
Waypoints way_points;
if (!TestWayPointFile(_T("test/data/waypoints.wpz"), way_points,
org_wp.size())) {
skip(10 * org_wp.size(), 0, "opening waypoint file failed");
return;
}
wp_vector::iterator it;
for (it = org_wp.begin(); it < org_wp.end(); it++) {
if (it->Name.length() > 12)
it->Name = it->Name.erase(12);
trim_inplace(it->Name);
const Waypoint *wp = GetWayPoint(*it, way_points);
TestZanderWayPoint(*it, wp);
}
}
开发者ID:galippi,项目名称:xcsoar,代码行数:19,代码来源:TestWayPointFile.cpp
示例5: TestCompeGPS_UTM
static void
TestCompeGPS_UTM(wp_vector org_wp)
{
Waypoints way_points;
if (!TestWaypointFile(_T("test/data/waypoints_compe_utm.wpt"), way_points,
org_wp.size())) {
skip(3 * org_wp.size(), 0, "opening waypoint file failed");
return;
}
wp_vector::iterator it;
for (it = org_wp.begin(); it < org_wp.end(); it++) {
size_t pos;
while ((pos = it->name.find_first_of(_T(' '))) != tstring::npos)
it->name.erase(pos, 1);
if (it->name.length() > 6)
it->name = it->name.erase(6);
trim_inplace(it->name);
const Waypoint *wp = GetWaypoint(*it, way_points);
ok1(wp->comment == it->comment);
}
}
开发者ID:piermariamattioli,项目名称:XCSoar,代码行数:24,代码来源:TestWaypointReader.cpp
注:本文中的wp_vector类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论