다음 코드 예제에서는 GPD 파일의 메모리 옵션에 대한 항목을 GDL 파일에 추가하는 방법을 보여 줍니다. 다음 예제 다음에 표시되는 GPD 코드 예제는 메모리 기능의 일반적인 정의입니다.
*Feature: Memory
{
*rcNameID: =PRINTER_MEMORY_DISPLAY
*DefaultOption: 4096KB
*MemConfigKB: PAIR(4096, 3150)
*MemConfigKB: PAIR(8192, 6750)
}
GDL 파일에 다음 기능을 추가하여 메모리 자동 구성을 사용하도록 설정할 수 있습니다.
*% This feature definition merges with the definition in the GPD file
*Feature: Memory
{
*% *BidiQuery and *BidiResponse constructs must have the same names
*BidiQuery: Memory
{
*QueryString: "\Printer.Configuration.Memory:Size"
}
*BidiResponse: Memory
{
*ResponseType: BIDI_INT
*ResponseData: ENUM_OPTION (Memory)
}
*Option: 4096KB
{
*% Names for the memory options already defined in GPD
*BidiValue: INT(4096)
}
*Option: 8192KB
{
*BidiValue: INT(8192)
}
}