Quellcode durchsuchen

修改编译问题

zengminguo vor 2 Jahren
Ursprung
Commit
6e37ce66c0
1 geänderte Dateien mit 18 neuen und 18 gelöschten Zeilen
  1. 18 18
      ant.cpp

+ 18 - 18
ant.cpp

@@ -1033,38 +1033,38 @@ void sit_list_v::init_site(const std::string &ids /*= ""*/)
 			sit_list_v::instance()->add(reader_id, site_ptr);
 		}
 
-		int reader_type_id = 0;
-		DBRes.GetField("reader_type_id", reader_type_id, Error);
+// 		int reader_type_id = 0;
+// 		DBRes.GetField("reader_type_id", reader_type_id, Error);
 
-		int map_id = 0;
-		DBRes.GetField("map_id", map_id, Error);
+// 		int map_id = 0;
+// 		DBRes.GetField("map_id", map_id, Error);
 
-		int area_id = 0;
-		DBRes.GetField("area_id", area_id, Error);
+// 		int area_id = 0;
+// 		DBRes.GetField("area_id", area_id, Error);
 
 		int device_type_id = 0;
 		DBRes.GetField("device_type_id", device_type_id, Error);
 
-		int dimension = 0;
-		DBRes.GetField("dimension", dimension, Error);
+// 		int dimension = 0;
+// 		DBRes.GetField("dimension", dimension, Error);
 
-		double scale = 0;
-		DBRes.GetField("scale", scale, Error);
+// 		double scale = 0;
+// 		DBRes.GetField("scale", scale, Error);
 
 		int power_alarm = 0;
 		DBRes.GetField("need_power_alarm", power_alarm, Error);
 
-		int down_stream_idx = 0;
-		DBRes.GetField("down_stream_idx", down_stream_idx, Error);
+// 		int down_stream_idx = 0;
+// 		DBRes.GetField("down_stream_idx", down_stream_idx, Error);
 
-		site_ptr->m_reader_type_id = reader_type_id;
-		site_ptr->m_map_id = map_id;
-		site_ptr->m_area_id = area_id;
+		//site_ptr->m_reader_type_id = reader_type_id;
+		//site_ptr->m_map_id = map_id;
+		//site_ptr->m_area_id = area_id;
 		site_ptr->m_power_check_enable = power_alarm;
 		site_ptr->m_device_type_id = device_type_id;
-		site_ptr->m_num_dims = dimension;
-		site_ptr->m_scale = scale;
-		site_ptr->m_down_stream_idx = down_stream_idx;
+		//site_ptr->m_num_dims = dimension;
+		//site_ptr->m_scale = scale;
+		//site_ptr->m_down_stream_idx = down_stream_idx;
 		site_ptr->create_area();
 
 		double x = 0, y = 0;