亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? f0fd80ddc45f001d1289bbda6de18a35

?? Vxworks環境下
??
?? 第 1 頁 / 共 2 頁
字號:

/*
$Log$
*/
/*
** ---------------------------------------------------------------------
**                Copyright (c) Bosch Rexroth AG 1997 - 2008
**                        All Rights Reserved
** ---------------------------------------------------------------------
**
**    File: dab_h_toolmanage.c
** 
**    Responsible: MY
** 
**    Description of functions:
**          test file for cpl management like variable list or debug
**          
**         
**	     -  CPL Debugger
**           -  set/delete breakpoint
**	     -  CPL Variable list
**           -  Add watch point and so on
**       -  **
** 
** ---------------------------------------------------------------------
*/
/*F*/
/*======================================================================
**           >>>>    Include all necessary headfiles     <<<<
** ==================================================================== */
/*======================================================================
**           >>>>    C - Standard Headerfiles        <<<<
** ==================================================================== */

#ifdef HWDS_WINDOWS 
#include <windows.h>       /* required for all Windows applications */
#endif
#include <stdio.h>

/*lint -e46*/
/*lint -e49*/
/*lint -e10*/
#include <tilcon/TRTAPI.h> 	// Tilcon API functions
/*lint +e46*/
/*lint +e49*/
/*lint +e10*/
/*======================================================================
**           >>>>    General definitions for c-files <<<<
**        these lines are generated automatically , do not modify !
** ==================================================================== */
#include <ty3c_mac.h>

/*F*/
/*======================================================================
**           >>>>    MTX - Headerfiles               <<<<
** ==================================================================== */

#ifndef NCS1BAS_INCLUDED
#include "ncs1bas.h"
#endif

#ifndef NCS1MCO_INCLUDED
#include "ncs1mco.h"
#endif

#ifndef NCS1SAV_INCLUDED
#include "ncs1sav.h"
#endif

#ifndef NCS1FSR_INCLUDED
#include "ncs1fsr.h"
#endif

/*======================================================================
**           >>>>    Headerfiles of the subsystem    <<<<
** ==================================================================== */

#ifndef DAB_H_ENGINE_IF_INCLUDED
#include "dab_h_engine_if.h"
#endif

#ifndef DAB_H_AXIS_IF_INCLUDED
#include "dab_h_axis_if.h"
#endif

#ifndef DAB_H_OBJIDS_INCLUDED
#include "dab_h_ObjIDs.h"
#endif

#ifndef DAB_H_MEM_INCLUDED
#include "dab_h_mem.h"
#endif


#include "string.h"


/*F*/
/*======================================================================
**           >>>>    Local definitions               <<<<
** ==================================================================== */

/***********************************************************************/
/** Here are some variables defined used in the CPL debug example.**/

#define MAXFILESIZE  1024*3            /*the size of the buffer saving the context of the NC Program to be showed in the HMI*/
LOCAL struct File_Name_Id{
	long fileid;
	char filename[15];
}record[100];                          /* use it to record the file name and id list in the folder */

IMPORT char Currentfileselect[20];     /*It will save the file name only.*/
EXPORT char CurrentFileToRun[100];        /*It will save the file name and it's path.*/
char Currentpath[20]="";               /*It will save the file path.*/



/*F*/
/*
************************************************************************
** >AUTHOR        : Jiang
**  FUNCTION NAME : DirShowtest
** 
** >DESCRIPTION: Example to Load directory into the HMI.
**               
**
** 
** >NOTES:	
**         
**         
**   
** >PARAMETER: none
** 
** >RETURN VALUE: none 
** 
** >INCLUDES :  none
** 
*/
EXPORT void Directory_Load(void){
	char buf[1024];
	char *entry;
	int  ret;
	char buffer[4096]="";
	char filebuffer[20];
	struct stat file_state;
	char BufferSelectPath[20]="";
	char item_base[5]="item";
	char imagebuf[50]="";
	char child_item[10]="";
	int  n=1;
	int  itemnumber=0;
	char tempr[3];
	
	TRT_SetValues(TRT_cid2, "FilesUnderFold",
		TRT_ATT_TEXT,"",
		NULL);
	//Get file path of access from HMI
	TRT_GetValues(TRT_cid2,"FoldSelect",
		TRT_ATT_TEXT,BufferSelectPath,NULL);
	
	//Mybe at here we will add a procress to modify the pathbuffer by delete redundant '/'! 
	Delete_RepetCharacter(BufferSelectPath,'/');
	
	TRT_SetValues(TRT_cid2,"FoldSelect",
		TRT_ATT_TEXT,BufferSelectPath,NULL);
	
	
	//How to prepare to add a item to a tree
	//at first you should know the parent item id 
	//at second you should know the item id of itself 
	//at 3rd you should know the item name which is be added to the tree.
	//at last you should add a ico to the item ,but it must not be done.
	sprintf(imagebuf,"%s\3%s\3%s\3%s\0",
		"item", "item0",BufferSelectPath,"folderop.ico");
	
	/* show root on the Tree view */
	TRT_SetValues(TRT_cid2, "Test_tree",
		/* del all already exist info on the tree view */
		TRT_ATT_LIST_DELETE_ITEMS, -1,
		/* add the item with the itemname and its icon */
		TRT_ATT_TREE_ITEMS_ADD_ID_IMAGE , imagebuf,
		NULL);
	
	//At first you should clear the filelist every time.
	TRT_SetValues(TRT_cid2, "FilesUnderFold",
		TRT_ATT_LIST_DELETE_ITEMS,-1,
		NULL); 
	
	//login the file system
	Ncs_Fsr_login("root", 0, 0, 0);
	
	//open a directory and record the "context" in the bufferXX
	
	ret=Ncs_Fsr_fopendir(BufferSelectPath,buf,1024);
	Ncs_Fsr_chdir(BufferSelectPath);
	Ncs_Fsr_getcwd(Currentpath);

	if (ret< 0)
	{
		TRT_SetValues(TRT_cid2,"Message_Display1",
			TRT_ATT_TEXT,"Read_file_Error!!!",NULL);
		return;
	}
	entry=NULL;
	do
	{
		//extract entry from the bufferXX
		ret=Ncs_Fsr_fgetdirentry(buf,&entry);
		//Get the entry state
		Ncs_Fsr_stat(entry,&file_state);
		if(ret>0) 
		{   //prepare to got a filename;
			strcpy(filebuffer,entry);
			if(S_ISDIR(file_state.st_mode)!=0){
				//make a new item id as  
				sprintf(tempr,"%d",n);
				strcat(item_base,tempr);
				
				strcpy(child_item,item_base);
				sprintf(imagebuf,"%s\3%s\3%s\3%s\0",
					"item0", child_item, entry, "folder.ico");
			
				TRT_SetValues(TRT_cid2, "Test_tree",
					TRT_ATT_TREE_ITEMS_ADD_ID_IMAGE,imagebuf,
					NULL);
				n++;
			}
			else{
				
				TRT_SetValues(TRT_cid2, "FilesUnderFold",
					TRT_ATT_ITEM_CREATE,entry,
					NULL); 
				//do someting record in order to show file list in this fold
				record[itemnumber].fileid=itemnumber;
				strcpy(record[itemnumber].filename,entry);
				itemnumber++;
			}
		}
		if (ret< 0)
		{
			TRT_SetValues(TRT_cid2,"Message_Display1",
				TRT_ATT_TEXT,"Get_Entry_Error!!!",
				NULL);
		}
	} while (ret>0);

	strcpy(BufferSelectPath,Currentpath);
	TRT_SetValues(TRT_cid2,"FoldSelect",
		TRT_ATT_TEXT,BufferSelectPath,
		NULL);
	Ncs_Fsr_fclosedir(buf);
	Ncs_Fsr_logout("root",0);
	
}

/*F*/
/*
************************************************************************
** >AUTHOR        : Jiang
**  FUNCTION NAME : FileReadTest
** 
** >DESCRIPTION: Example to Load directory into the HMI.
**               
**
** 
** >NOTES:	
**         
**         
**   
** >PARAMETER: none
** 
** >RETURN VALUE: none 
** 
** >INCLUDES :  none
** 
*/
EXPORT void FileReadTest(void){   
	
	char filenamewithpath[20]="";
	char fileselect[20]="";
	char filecontextfuffer[MAXFILESIZE];		/*have problem here.*/
	long itemid=0;
	char itemtxt[15]="";
	struct stat file_state;
	int error;
	char* point=NULL;							/*check the npg file.*/
	int number=0;
	int BreakpointPlace[20]={0};
	int i=0;
	int n=0;
	int m=0;
	char tempbuffer[4]="";
	char tablename_my[20]="";

	TRT_SetValues(TRT_cid2, "FileContext",       /* At first you shoud clear the old file context! */
		TRT_ATT_TEXT,"",
		NULL);
	error=Ncs_Fsr_login("root", 0, 0, 0);
	TRT_GetValues(TRT_cid2,"FoldSelect",

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
4438x成人网最大色成网站| 精品系列免费在线观看| 国产99一区视频免费| 精品久久久久一区二区国产| 中文字幕在线不卡视频| 国产一二精品视频| 精品国产乱码久久久久久影片| 一区二区三区国产精华| 97精品国产97久久久久久久久久久久| 欧美精品v日韩精品v韩国精品v| 亚洲欧洲日本在线| a在线欧美一区| 欧美激情一区三区| 免费一区二区视频| 日韩欧美一级二级| 精品在线一区二区三区| 欧美mv日韩mv国产网站| 麻豆精品视频在线| 精品免费视频一区二区| 久久精品免费观看| 欧美精品久久一区| 蜜臀av一区二区| 这里只有精品电影| 久久99精品久久久久| 久久精品免视看| 久久99国产精品久久99果冻传媒| 日韩精品一区二区三区视频| 韩国精品在线观看| 国产亚洲女人久久久久毛片| av激情亚洲男人天堂| 免费观看30秒视频久久| 中文字幕亚洲在| 欧美一区在线视频| 成人免费视频播放| 青青草国产精品97视觉盛宴| 国产精品久久久久久久浪潮网站 | 曰韩精品一区二区| 欧美美女视频在线观看| 国产高清精品网站| 亚洲成av人影院| 欧美国产激情一区二区三区蜜月| 在线中文字幕不卡| 国产伦精品一区二区三区视频青涩| 亚洲精品免费在线观看| 久久婷婷国产综合精品青草| 欧美系列一区二区| 国产高清久久久| 日本欧美韩国一区三区| 亚洲美女屁股眼交3| 久久影院午夜论| 欧美日韩夫妻久久| 99视频热这里只有精品免费| 麻豆国产91在线播放| 亚洲欧美激情一区二区| 国产视频亚洲色图| 日韩美女视频在线| 91黄色免费版| 成人免费视频视频在线观看免费| 青青草91视频| 午夜欧美2019年伦理| 亚洲欧洲精品一区二区三区不卡| 久久亚洲一区二区三区四区| 欧美精品亚洲一区二区在线播放| 成人高清伦理免费影院在线观看| 久久成人免费日本黄色| 同产精品九九九| 亚洲国产三级在线| 一区二区三区91| **欧美大码日韩| 欧美国产一区二区| 精品久久久久久无| 精品久久久影院| 日韩欧美亚洲另类制服综合在线| 欧美日韩在线综合| 精品视频在线视频| 91福利视频网站| 色天天综合久久久久综合片| 99久久久国产精品| 成人激情免费视频| 99久久精品免费精品国产| 成人18精品视频| 成人国产视频在线观看| 处破女av一区二区| 99热99精品| www.av精品| 日本乱人伦aⅴ精品| 日本精品免费观看高清观看| 91麻豆视频网站| 色综合久久88色综合天天免费| 94-欧美-setu| 色视频成人在线观看免| 欧洲av在线精品| 欧美日韩精品一二三区| 欧美高清激情brazzers| 日韩免费看的电影| 久久婷婷国产综合精品青草 | 全国精品久久少妇| 美女任你摸久久| 精品一区二区三区视频| 国产精品99久久久久久似苏梦涵| 国产酒店精品激情| 91视频91自| 欧美老肥妇做.爰bbww| 日韩精品在线一区| 欧美国产激情二区三区 | 欧美xxxx在线观看| 久久一二三国产| 中日韩av电影| 亚洲激情图片小说视频| 日韩精品一二三区| 国产a级毛片一区| 色婷婷精品大在线视频| 欧美高清dvd| 国产视频不卡一区| 亚洲国产精品久久不卡毛片 | 欧美日韩不卡一区二区| 日韩欧美电影在线| 国产精品理伦片| 亚洲精品免费一二三区| 美女视频一区二区| gogo大胆日本视频一区| 欧美一区二区精品| 欧美激情一区二区三区四区 | 久久午夜电影网| 亚洲黄色片在线观看| 麻豆精品在线播放| 99久久精品情趣| 精品日韩一区二区三区免费视频| 中文字幕成人在线观看| 日本色综合中文字幕| 成人禁用看黄a在线| 欧美mv日韩mv| 亚洲午夜久久久久久久久电影院| 精品一区二区三区在线观看| 欧美又粗又大又爽| 久久久国产综合精品女国产盗摄| 亚洲午夜激情网页| 懂色一区二区三区免费观看| 欧美日韩免费观看一区三区| 国产精品视频观看| 久99久精品视频免费观看| 在线观看日韩电影| 亚洲欧洲一区二区在线播放| 麻豆成人免费电影| 欧美日韩久久久一区| 国产精品国产精品国产专区不蜜 | 成人免费高清视频| 日韩一区二区麻豆国产| 亚洲综合视频网| 成人美女在线观看| 久久一区二区三区国产精品| 视频精品一区二区| 欧美日韩免费电影| 亚洲精品菠萝久久久久久久| 国产麻豆一精品一av一免费| 欧美一区二区在线不卡| 一区二区高清视频在线观看| 不卡一区中文字幕| 日本一区二区久久| 国产福利视频一区二区三区| 精品久久人人做人人爽| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美在线播放高清精品| 亚洲精品一卡二卡| 91麻豆免费看| 亚洲欧洲中文日韩久久av乱码| 成人午夜激情在线| 欧美电视剧免费全集观看| 免费观看成人av| 日韩女同互慰一区二区| 麻豆一区二区99久久久久| 欧美一区二区美女| 蜜桃视频在线观看一区| 欧美一二三区在线| 男女性色大片免费观看一区二区| 欧美一二三四区在线| 久久精品国产一区二区三区免费看| 69av一区二区三区| 日韩精品一级二级| 欧美成人伊人久久综合网| 激情欧美一区二区| 欧美激情一区二区三区不卡| 成人国产电影网| 亚洲人吸女人奶水| 欧美性感一类影片在线播放| 亚洲国产精品人人做人人爽| 91麻豆精品国产91久久久更新时间 | 欧美视频日韩视频在线观看| 亚洲欧美日韩一区二区| 欧美日韩一区三区四区| 日韩一区精品字幕| 欧美成人三级在线| 豆国产96在线|亚洲| 亚洲摸摸操操av| 欧美日本一区二区| 国内精品免费**视频| 中文字幕电影一区| 欧美日韩在线一区二区| 蜜臀久久99精品久久久画质超高清| 久久久国产一区二区三区四区小说 |