Logo Search packages:      
Sourcecode: sagcad version File versions  Download package

List_Select.h

/* ====================================================================
 * ===  Copyright (C) 1998-2007 Yutaka Sagiya. All rights reserved. ===
 * ====================================================================
 * 
 *    Project              : SagCAD
 *    Description          : CAD/CAM
 *    Source               : List_Select.h
 * 
 *    ----------------------------------
 * 
 *    License              : GNU General Public License (GPL)
 *    Copyright            : (C) 1998-2007 by Yutaka Sagiya
 *    email                : kappa@a6s.highway.ne.jp
 *                         : yutaka@sagiya.com
 *    Begin                : 2001/01/16
 *    Last                 : 2007/11/08
 * ====================================================================
 */

#ifndef __LIST_SELECT_H__
#define __LIST_SELECT_H__

//#include <>
#include "types.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */



/* -------------------------------------------------------
 * 1 : 前処理  (struct #define etc)
 * -------------------------------------------------------
 */



/* -------------------------------------------------------
 * 2 : 外部変数 (global)
 * -------------------------------------------------------
 */
#ifdef        _LIST_SELECT_
#define   GLOBAL
// 初期値設定
#define   GLOBAL_VAL(v)  = (v)
#else
#define   GLOBAL  extern
// 初期値設定の代入部分を無くす
#define   GLOBAL_VAL(v)  /* */
#endif


      GLOBAL SELECT_LIST *p_select_list;
      GLOBAL SELECT_LIST_INFO select_list_info;


#undef      GLOBAL
#undef      GLOBAL_VAL
#undef      _LIST_SELECT_



/* -------------------------------------------------------
 * 3 : 外部関数 (Function)
 * -------------------------------------------------------
 */
/* Select Data をリストの最後に追加 */
int select_list_add_last(SELECT *add_select);
/* Select Data をリストの最初に追加 */
int select_list_add_first(SELECT *add_select);
/* Select Data をリストから削除 */
int select_list_free(SELECT_LIST *del_List);
/* 全リストを削除 */
void select_list_all_free(void);
/* リストの総数を調べる */
long select_list_num(void);
/* n 番目のデータの検索 */
SELECT_LIST *select_search_num(long search_number);
/*    */
long select_search_select_to_num(SELECT_LIST *p_select);
SELECT_LIST *select_search_cad(CAD *cad);



#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __LIST_SELECT_H__ */
/* ====================================================================
 * ===  Copyright (C) 1998-2007 Yutaka Sagiya. All rights reserved. ===
 * ====================================================================
 *    Project              : SagCAD
 *    Source               : List_Select.h
 * ====================================================================
 */

Generated by  Doxygen 1.6.0   Back to index