bool CSigCreate::CreateSigStruct() { //先检索出所有的手机ID,以便之后存储方便。可通过UePosition文件进行检索 GetPhoneID(); GetCellID(&m_cellInfo); ifstream fPos("UePosition.txt"); if(!fPos) return false; string s; while( getline(fPos,s) ) { UePosition pos; if( GetUePositionPerLine(s.c_str(),&pos)) {//读取到一行手机数据 GetCoordnateInfo(&pos); } } fPos.close(); //基本结构建立,读取cell信息 ifstream fCell("UePhyReport.txt"); if(!fCell) return false; string str; while(getline(fCell,str)) { UePhyReport rpt; GetUePhyReportPerLine(str.c_str(),&rpt); CellInfo* pC = GetCellInfo(rpt.nPhoneID,rpt.nID); if(!pC) { return false; } RangeCellInfo info; info.dbTime = rpt.dbTime; info.rsrpInfo = rpt.dbRsrp; pC->range.push_back(info); // pC->nID cout<< str.c_str()<<endl; } fCell.close(); return true; }
bool CSigCreate::GetCellInfo(vector<CellInfo>* pCellInfo,int nPhoneID) { GetCellID(pCellInfo); //获取到某个cell return true; }
BOOL CDrawInfo::MouseDown( UINT nFlags, CPoint point, hsRefMouseMsg* pData /*= NULL*/ ) { if (m_rcDown.PtInRect(point)) {// 往下翻 CDrawBaseParam param; param.AddParam(PARAM_CODE_PAGE_UP_DOWN_DIRECTION, PARAM_CODE_PAGE_UP_DOWN_DIRECTION_DOWN); m_pRegion->SendLinkageMsg(QUOTE_MESSAGE_CODE_PAGE_UP_DOWN, ¶m); return TRUE; } else if (m_rcUp.PtInRect(point)) {// 往上翻 CDrawBaseParam param; param.AddParam(PARAM_CODE_PAGE_UP_DOWN_DIRECTION, PARAM_CODE_PAGE_UP_DOWN_DIRECTION_UP); m_pRegion->SendLinkageMsg(QUOTE_MESSAGE_CODE_PAGE_UP_DOWN, ¶m); return TRUE; } else if (m_rcClose.PtInRect(point)) {// 关闭 CDrawBaseParam param; CString strType; strType.Format("%d", m_stkInfo.m_ciStockCode.m_cCodeType); param.AddParam(Param_Open_MarketType, strType); param.AddParam(Param_Open_StockCode, m_stkInfo.GetCode()); param.AddParam(PARAM_DIAGRAM_LAYOUT_NAME, Layout_TechAnalysis); CString strMsgID; strMsgID.Format("%d", DiagramMsg_OpenLayout); param.AddParam(PARAM_DIAGRAMMSGID, strMsgID); m_pRegion->SendLinkageMsg(QUOTE_MESSAGE_NOTIFY_DIAGRAM_LAYOUT, ¶m); return TRUE; } else if (m_rcMaxScreen.PtInRect(point)) {// 全屏或者还原 CString strLayoutName(""); if (m_bSizeMax) strLayoutName = Layout_F10Info; else strLayoutName = Layout_MaxSize_F10Info; CDrawBaseParam param; CString strType; strType.Format("%d", m_stkInfo.m_ciStockCode.m_cCodeType); param.AddParam(Param_Open_MarketType, strType); param.AddParam(Param_Open_StockCode, m_stkInfo.GetCode()); param.AddParam(PARAM_DIAGRAM_LAYOUT_NAME, strLayoutName); CString strMsgID; strMsgID.Format("%d", DiagramMsg_OpenLayout); param.AddParam(PARAM_DIAGRAMMSGID, strMsgID); m_pRegion->SendLinkageMsg(QUOTE_MESSAGE_NOTIFY_DIAGRAM_LAYOUT, ¶m); return TRUE; } GetCellID(point); if (GetActiveCellID() == m_nActiveCellID) {// 如果用户单击的位置 没有发生改变 直接返回 return TRUE; } CPoint pos = IndexToPoint(GetActiveCellID()); int nAyIndex = GetArrayIndexFromPoint(pos); if (nAyIndex != -1) {// 要发送资讯内容请求 m_nActiveCellID = GetActiveCellID(); RequestText(nAyIndex); } else { m_pViewInfo->MouseDown(nFlags, point); } return TRUE; }