JPH06324931A - Resource data retrieval method - Google Patents

Resource data retrieval method

Info

Publication number
JPH06324931A
JPH06324931A JP5108291A JP10829193A JPH06324931A JP H06324931 A JPH06324931 A JP H06324931A JP 5108291 A JP5108291 A JP 5108291A JP 10829193 A JP10829193 A JP 10829193A JP H06324931 A JPH06324931 A JP H06324931A
Authority
JP
Japan
Prior art keywords
data
resource
search
memory
character string
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5108291A
Other languages
Japanese (ja)
Inventor
Takashi Ishitani
高志 石谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP5108291A priority Critical patent/JPH06324931A/en
Publication of JPH06324931A publication Critical patent/JPH06324931A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

(57)【要約】 【目的】 連続したメモリ空間を占有することなくデー
タを配置し得るとともに目的のデータを迅速に検索し得
るリソースデータ検索方法を提供することにある。 【構成】 データ部とマップ部/ヘッダ部とを含むリソ
ース構造に構成されるとともにユーザインターフェース
に関する情報を保有し所定のアドレス空間に格納自在な
リソースデータを格納するメモリ(4,7)と、メモリ(4,7)
に格納されたリソースデータの各部に関して分離検索自
在な検索装置(1,2,5,6,8,9,10)とを備えた電子機器にお
いて、検索装置(1,2,5,6,8,9,10)によりデータ部から文
字列部とビットマップデータ部とを分離する段階と、文
字列部とビットマップデータ部とが分離されたデータ部
に関して検索すべきデータを検索装置(1,2,5,6,8,9,10)
により検索する段階とを含むことを特徴とする。
(57) [Summary] [Object] To provide a resource data search method capable of allocating data without occupying a continuous memory space and quickly searching for target data. [Structure] A memory (4, 7) configured to have a resource structure including a data part and a map part / header part, which holds information about a user interface and stores resource data which can be stored in a predetermined address space, and a memory. (4,7)
In the electronic device equipped with the search device (1,2,5,6,8,9,10) that can separately search for each part of the resource data stored in the search device (1,2,5,6,8 , 9, 10) separating the character string part and the bitmap data part from the data part, and the search device for searching the data part for which the character string part and the bitmap data part are separated (1, (2,5,6,8,9,10)
And a step of searching by.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】リソースデータ検索方法に係り、
詳細にはコンピュータやワードプロセッサ等の電子機器
におけるリソースデータ検索方法に係る。
[Industrial application field] Relating to resource data search method,
More specifically, the present invention relates to a resource data search method in electronic devices such as computers and word processors.

【0002】[0002]

【従来の技術】ワードプロセッサにおける従来のリソー
スデータ構造を図8から図13に示す。図8はシートI
OCBを示す図、図9はウインド指定IOCBを示す
図、図10はコントロールリソース格納を説明する図、
図11はメッセージリソース格納を説明する図、図12
は文字リソース格納を説明する図、図13はビットマッ
プリソース格納を説明する図である。また、各図におい
て、aからdは繰り返し個数の関係を示し、括弧内はバ
イトを示している。
2. Description of the Related Art A conventional resource data structure in a word processor is shown in FIGS. Figure 8 shows sheet I
FIG. 9 is a diagram showing an OCB, FIG. 9 is a diagram showing a window-specified IOCB, FIG. 10 is a diagram illustrating control resource storage,
FIG. 11 is a diagram illustrating message resource storage, and FIG.
Is a diagram illustrating character resource storage, and FIG. 13 is a diagram illustrating bitmap resource storage. Further, in each figure, a to d indicate the relationship of the number of repetitions, and the parentheses indicate bytes.

【0003】図8から図13に示されるようにワードプ
ロセッサにおけるデータはマップ部とデータ部とを明確
に分離していなかった。このため、保守が困難であつた
り、検索にかなりの時間を要していた。
As shown in FIGS. 8 to 13, the data in the word processor does not clearly separate the map part and the data part. For this reason, maintenance is difficult and it takes a considerable amount of time to search.

【0004】汎用コンピュータにおける従来のリソース
データ構造を図14に示す。図14において、A、Bは
繰り返し個数の関係を示し、括弧内はバイト数を示して
いる。
FIG. 14 shows a conventional resource data structure in a general-purpose computer. In FIG. 14, A and B indicate the relationship of the number of repetitions, and the numbers in parentheses indicate the number of bytes.

【0005】図14に示されるように汎用コンピュータ
においては、マップ部とデータ部とが分離した構造を提
案されてはいたが実体としては一体化しているためコン
ピュータ上の指定する任意のアドレス空間にこれらの各
部を分離して格納することができなかった。
As shown in FIG. 14, in a general-purpose computer, a structure in which a map portion and a data portion are separated has been proposed, but since it is integrated as an entity, it can be stored in an arbitrary address space designated by the computer. It was not possible to store these parts separately.

【0006】[0006]

【発明が解決しようとする課題】ワードプロセッサやコ
ンピュータなどの情報機器におけるユーザインタフェー
スのためのデータ情報は複雑かつ膨大になりつつある。
またこれらのデータを頻繁にアクセスしたり、ユーザー
やシステム拡張に合わせて修正を頻繁に行う必要があ
る。
Data information for a user interface in an information device such as a word processor or a computer is becoming complicated and huge.
In addition, it is necessary to access these data frequently and modify them frequently according to the user and system expansion.

【0007】このため現状のリソース構造では、様々に
システムアップしていくアプリケーションに追従してデ
ータを追加/修正していくことが非常に困難となってく
る。また、目的のリソースデータを検索する際にもデー
タのサイズが大きくなればなるほど、検索速度が問題と
なってくる。
Therefore, with the current resource structure, it becomes very difficult to add / correct data in accordance with various system-up applications. Also, when searching for the target resource data, the larger the size of the data, the more the search speed becomes a problem.

【0008】また、ユーザインターフェースのためのデ
ータが増大する反面、ワードプロセッサのようなROM
ベースマシンや小型コンピュータでは大きなメモリ空間
を連続して確保することが難しく、なるべく小さなパー
ツにして自由に配置できることが望ましい。特に既存の
機器に搭載する場合には、既存アプリケーションによる
メモリ配置が既に固定的に決まっている場合が多く、小
さな空きエリアにしかこのような新しいデータを配置す
ることができない。
Further, although the data for the user interface is increased, a ROM such as a word processor is used.
It is difficult for a base machine or a small computer to continuously secure a large memory space, and it is desirable that the parts can be freely arranged as small as possible. In particular, when it is installed in an existing device, the memory allocation by the existing application is often fixed, and such new data can be allocated only in a small empty area.

【0009】本発明の目的は、連続したメモリ空間を占
有することなくデータを配置し得るとともに目的のデー
タを迅速に検索し得るリソースデータ検索方法を提供す
ることにある。
An object of the present invention is to provide a resource data search method that can arrange data without occupying a continuous memory space and can quickly search the target data.

【0010】[0010]

【課題を解決するための手段】データ部とマップ部/ヘ
ッダ部とを含むリソース構造に構成されるとともにユー
ザインターフェースに関する情報を保有し所定のアドレ
ス空間に格納自在なリソースデータを格納するメモリ
と、メモリに格納されたリソースデータの各部に関して
分離検索自在な検索装置とを備えた電子機器において、
検索装置によりデータ部から文字列部とビットマップデ
ータ部とを分離する段階と、文字列部とビットマップデ
ータ部とが分離されたデータ部に関して検索すべきデー
タを検索装置により検索する段階とを含むことを特徴と
する。
A memory configured to have a resource structure including a data section and a map section / header section, which holds information about a user interface and stores resource data which can be stored in a predetermined address space, In an electronic device equipped with a search device capable of separately searching for each part of resource data stored in a memory,
A step of separating the character string part and the bitmap data part from the data part by the search device, and a step of searching the data to be searched by the search device for the data part in which the character string part and the bitmap data part are separated. It is characterized by including.

【0011】[0011]

【作用】検索装置によりデータ部から文字列部とビット
マツプデータ部とを分離し、文字列部とビットマップデ
ータ部とが分離されたデータ部に関して検索すべきデー
タを検索装置により検索するので、高速度にデータを検
索し得、異なるシステム間やシステムのレベルアツプ時
での融通性に富むとともに既存システムへの導入を容易
とし得る。
Since the character string part and the bit map data part are separated from the data part by the search device, and the data to be searched for the data part in which the character string part and the bitmap data part are separated is searched by the search device, The data can be retrieved at a high speed, and flexibility can be provided between different systems and at the time of system level upgrade, and the introduction into an existing system can be facilitated.

【0012】[0012]

【実施例】ワードプロセッサにおけるユーザインターフ
ェース部の管理リソースデータを例にとり説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The management resource data of the user interface section of a word processor will be described as an example.

【0013】図2は本発明の方法の実施例を行うために
使用される機器構成の示す図である。
FIG. 2 is a diagram showing the equipment configuration used to carry out an embodiment of the method of the present invention.

【0014】図2において、CPU1はKeyCPU2
から送信される入力デバイスからの入力情報を受取り、
プログラムメモリ6のプログラムを実行する。KeyC
PU2では入力デバイスとしてのポインティングデバイ
ス8、9やキーボード10の制御を行い、CPU1に対
して割り込みを行う。
In FIG. 2, CPU1 is KeyCPU2.
Receives input information from the input device sent from
The program in the program memory 6 is executed. KeyC
The PU 2 controls the pointing devices 8 and 9 as an input device and the keyboard 10, and interrupts the CPU 1.

【0015】プログラムメモリ6にはメモリ(ROM)
7やメモリ(RAM)4、カットバッファ(RAM)5
をアクセスし、VRAM3を介して出力を行うなどのプ
ログラムがおかれており、CPU1が順次これらのアク
セスを行っていく。
The program memory 6 has a memory (ROM).
7, memory (RAM) 4, cut buffer (RAM) 5
, And output through the VRAM 3, and the CPU 1 sequentially performs these accesses.

【0016】ここで作成されるリソースデータは、図2
のメモリ4、メモリ7に他の制御データと混在して配置
される。
The resource data created here is shown in FIG.
Are arranged in the memory 4 and the memory 7 together with other control data.

【0017】図3はリソースデータを含むメモリマップ
の例を示す図である。
FIG. 3 is a diagram showing an example of a memory map including resource data.

【0018】本発明の方法の実施例によるリソースデー
タは、他のデータと混在して配置し易いようにモジュー
ル化・構造化を行っており、下記の構成となっている。
The resource data according to the embodiment of the method of the present invention is modularized and structured so that it can be easily mixed with other data, and has the following configuration.

【0019】1)モジュール化 ヘッダ部、データ部、マップ部、文字列部、ビットマッ
プ部に分割する。
1) Modularization It is divided into a header part, a data part, a map part, a character string part and a bit map part.

【0020】2)構造化 各データにデータの形式を表すタイプとデータタイプ毎
にユニークな識別番号であるIDを設け、2層に構造化
して管理する。図4から図7はこのようなリソースデー
タの構成例を示す図である。図4はリソースヘッダ部を
説明する図、図5(a)はリソースデータ部を説明する
図、図5(b)はリソースマップ部を説明する図、図6
は文字列部を説明する図、図7はビットマップ部を説明
する図である。図4から図7においてA、Bは繰り返し
個数の関係を示し括弧内はバイト数を示す。
2) Structuring Each data is provided with a type representing the format of the data and an ID that is a unique identification number for each data type, and is structured and managed in two layers. 4 to 7 are diagrams showing examples of the configuration of such resource data. 4 is a diagram for explaining the resource header part, FIG. 5 (a) is a diagram for explaining the resource data part, FIG. 5 (b) is a diagram for explaining the resource map part, and FIG.
FIG. 7 is a diagram illustrating a character string portion, and FIG. 7 is a diagram illustrating a bitmap portion. 4 to 7, A and B show the relationship of the number of repetitions, and the numbers in parentheses show the number of bytes.

【0021】リソースデータはリソースデータ部、文字
列部、ビットマップ部、ビットマップ部とリソースデー
タ部とを管理するためのリソースマップ部、およびリソ
ースヘッダ部とからなる。リソースヘッダ部にはリソー
スの各パーツがメモリ上のどこに配置されているかを示
すための各パーツの先頭アドレスが格納されている。
The resource data comprises a resource data part, a character string part, a bit map part, a resource map part for managing the bit map part and the resource data part, and a resource header part. The resource header section stores the start address of each part for indicating where each part of the resource is arranged in the memory.

【0022】リソース検索部(リソースマネージャー)
では、これらのリソースをヘッダ部の情報をもとに管理
を行う。図1はリソースデータ検索方法の実施例の処理
手順を示すフローチャートである。リソースマネージャ
ーによるリソースデータ検索の処理手順を図1に基づい
て説明する。
Resource search unit (resource manager)
Then, these resources are managed based on the information in the header part. FIG. 1 is a flowchart showing a processing procedure of an embodiment of a resource data search method. The processing procedure of the resource data search by the resource manager will be described based on FIG.

【0023】ユーザプログラムなどから与えられるリソ
ースタイプとIDをキーとして、まずリソースタイプが
文字列又はビットマップかどうかを確認する(1−
1)。リソースタイプが文字列又はビットマップでない
ときは(1−2)ヘッダ部からマップ部の先頭アドレス
を読み出す(1−3)。
First, it is confirmed whether the resource type is a character string or a bit map by using the resource type and ID provided from the user program as a key (1-
1). If the resource type is not a character string or bitmap (1-2), the start address of the map portion is read from the header portion (1-3).

【0024】マップ部の「タイプリストに対するオフセ
ット」よりタイプリストを検索し、検索対象のタイプが
あるまでタイプリストを検索する(1−4)。検索対象
のタイプがないときは目標とするデータがないことであ
りエラーとする(1−5、1−6)。検索対象のタイプ
がみつかつたときはタイプリストから「参照リストに対
するオフセット」を参照し、検索対象のIDがあるまで
参照リストを検索する(1ー5、1ー7)。検索対象の
IDがなければ目標とするデータがないことでありエラ
ーとする(1ー8、1ー9)。検索対象のIDがあれば
「リソースデータに対するオフセット」を読み出す(1
ー8、1ー10)。
The type list is searched from the "offset for the type list" in the map section, and the type list is searched until there is a type to be searched (1-4). If there is no type of search target, it means that there is no target data and an error occurs (1-5, 1-6). If the type of the search target is found, the "offset to the reference list" is referenced from the type list, and the reference list is searched until the search target ID is found (1-5, 1-7). If there is no ID to be searched, it means that there is no target data and an error occurs (1-8, 1-9). If there is a search target ID, the "offset for resource data" is read (1
-8, 1-10).

【0025】ついで、ヘッダ部からデータ部の先頭アド
レを読みだし、1−10ステップで読みだした「オフセ
ット値」を加えたアドレスから格納されている検索対象
のデータを索引する(1ー11)。
Next, the head address of the data part is read from the header part, and the stored data to be searched is indexed from the address to which the "offset value" read in step 1-10 is added (1-11). .

【0026】リソースタイプが文字列またはビットマッ
プのときは(1−2)タイプが文字列部かビットマップ
部であればヘッダ部からそれぞれデータの格納アドレを
読み出しジャンプする(1−12)。そして、格納アド
レスにIDを加えたアドレスに格納されているオフセッ
ト値を読み出し、文字列部/ビットマップ部の先頭アド
レスにそれを加えたアドレスから格納された検索対象デ
ータを索引する(1−13)、(図6、図7参照)。
When the resource type is a character string or a bit map (1-2), if the type is a character string part or a bit map part, the storage address of the data is read out from the header part and jumped (1-12). Then, the offset value stored in the address obtained by adding the ID to the storage address is read, and the search target data stored is indexed from the address obtained by adding the offset value to the start address of the character string portion / bitmap portion (1-13). ), (See FIGS. 6 and 7).

【0027】[0027]

【発明の効果】検索装置によりデータ部から文字列部と
ビットマップデータ部とを分離し、文字列部とビットマ
ップデータ部とが分離されたデータ部に関して検索すべ
きデータを検索装置により検索するので、高速度にデー
タを検索し得、異なるシステム間やシステムのレベルア
ップ時での融通性に富むとともに既存システムへの導入
を容易とし得る。
The character string part and the bitmap data part are separated from the data part by the search device, and the data to be searched for the data part in which the character string part and the bitmap data part are separated is searched by the search device. Therefore, data can be retrieved at high speed, and flexibility can be provided between different systems and at the time of upgrading the system, and introduction into an existing system can be facilitated.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明のリソースデータ検索方法の実施例の処
理手順を示すフローチャートである。
FIG. 1 is a flowchart showing a processing procedure of an embodiment of a resource data search method of the present invention.

【図2】本発明の方法の実施例を行うために使用される
機器構成の示す図である。
FIG. 2 is a diagram of the equipment configuration used to perform an embodiment of the method of the present invention.

【図3】リソースデータを含むメモリマップの例を示す
図である。
FIG. 3 is a diagram showing an example of a memory map including resource data.

【図4】リソースヘッダ部を説明する図である。FIG. 4 is a diagram illustrating a resource header part.

【図5】リソースデータ部、リソースマップ部を説明す
る図である。
FIG. 5 is a diagram illustrating a resource data section and a resource map section.

【図6】文字列部を説明する図である。FIG. 6 is a diagram illustrating a character string portion.

【図7】ビットマップ部を説明する図である。FIG. 7 is a diagram illustrating a bitmap unit.

【図8】シートIOCBを示す図である。FIG. 8 is a diagram showing a sheet IOCB.

【図9】ウインド指定IOCBを示す図である。FIG. 9 is a diagram showing a window-specified IOCB.

【図10】コントロールリソース格納を説明する図であ
るる
FIG. 10 is a diagram illustrating storage of control resources.

【図11】メッセージリソース格納を説明する図であ
る。
FIG. 11 is a diagram illustrating message resource storage.

【図12】文字リソース格納を説明する図である。FIG. 12 is a diagram illustrating character resource storage.

【図13】ビットマップリソース格納を説明する図であ
る。
FIG. 13 is a diagram illustrating storage of bitmap resources.

【図14】汎用コンピュータにおける従来のリソースデ
ータ構造を示す図である。
FIG. 14 is a diagram showing a conventional resource data structure in a general-purpose computer.

【符号の説明】[Explanation of symbols]

1 CPU 2 KeyCPU 3 VRAM 4 メモリ(RAM) 5 カットバッファ(RAM) 6 プログラムメモリ(ROM) 7 メモリ(ROM) 8、9 ポインティングデバイス 10 キーボード 1 CPU 2 KeyCPU 3 VRAM 4 Memory (RAM) 5 Cut buffer (RAM) 6 Program memory (ROM) 7 Memory (ROM) 8, 9 Pointing device 10 Keyboard

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データ部とマップ部/ヘッダ部とを含む
リソース構造に構成されるとともにユーザインターフェ
ースに関する情報を保有し所定のアドレス空間に格納自
在なリソースデータを格納するメモリと、前記メモリに
格納されたリソースデータの各部に関して分離検索自在
な検索装置とを備えた電子機器において、前記検索装置
によりデータ部から文字列部とビットマップデータ部と
を分離する段階と、文字列部とビットマップデータ部と
が分離されたデータ部に関して検索すべきデータを前記
検索装置により検索する段階とを含むことを特徴とする
リソースデータ検索方法。
1. A memory configured to have a resource structure including a data part and a map part / header part, which stores information about a user interface and stores resource data which can be stored in a predetermined address space, and the memory. In an electronic device equipped with a search device capable of separately searching for each part of the generated resource data, a step of separating the character string part and the bitmap data part from the data part by the search device, the character string part and the bitmap data. Searching the data to be searched for the data part separated from the part by the searching device.
JP5108291A 1993-05-10 1993-05-10 Resource data retrieval method Pending JPH06324931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5108291A JPH06324931A (en) 1993-05-10 1993-05-10 Resource data retrieval method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5108291A JPH06324931A (en) 1993-05-10 1993-05-10 Resource data retrieval method

Publications (1)

Publication Number Publication Date
JPH06324931A true JPH06324931A (en) 1994-11-25

Family

ID=14480956

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5108291A Pending JPH06324931A (en) 1993-05-10 1993-05-10 Resource data retrieval method

Country Status (1)

Country Link
JP (1) JPH06324931A (en)

Similar Documents

Publication Publication Date Title
JP3824298B2 (en) Server, web content editing apparatus, program for realizing these using computer, web content editing method and providing method thereof
US5463774A (en) Object oriented computer architecture using directory objects
US11132385B2 (en) Information processing device and information processing method
US20020165862A1 (en) Natural language help interface
JP2008547106A (en) Search backoff mechanism
KR980010818A (en) Method, system and computer program product for generating first and second HTML documents
JP2007184009A (en) Method and system for centralized cache memory to be atomically updated
CN115705294B (en) Method, device, electronic device and medium for obtaining function call information
JP2005107597A (en) Device and method for searching for similar sentence and program
US7958511B1 (en) Mechanism for estimating the computing resources needed to execute a job
CN107977275B (en) Task processing method based on message queue and related equipment
JP2667352B2 (en) Data retrieval apparatus and method
JP6977565B2 (en) Search result output program, search result output device and search result output method
JP2870582B2 (en) Hypermedia document management device
US7024622B1 (en) Keeping track of locations in electronic documents
CN118733303B (en) APP memory data classified storage method, classified storage system and server
CN116302819A (en) Policy processing method, device and storage medium of configuration software
JP2999516B2 (en) Character output control method and device for terminal device
JPH0784840A (en) File allocation system
JPH11338719A (en) Computer system
JPH11328193A (en) Information retrieving system and storage medium
JPH06259426A (en) Method and device for processing character
JPH11232103A (en) Program link method and method search method
US7523169B1 (en) Method and system for mapping network data for network database access
JPH08194702A (en) Information processing apparatus and character cache method thereof