xp_comm_proj/rd_dicom/Papyrus3/DicomDir/DicomDirInitRecords.c
/********************************************************************************/
/*										*/
/*	init_PrintQueue : initializes the elements of the Directory Record	*/
/*	Print Queue 								*/
/*										*/
/********************************************************************************/
init_PrintQueue : initializes the elements of the Directory Record
Print Queue
init_PrintQueue : initializes the elements of the Directory Record Print Queue
void
init_PrintQueue (SElement ioElem [])
{
  SElement	*theWrkP;
  theWrkP		= &ioElem [papOffsetofNextDirectoryRecordPQ];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1400;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UL;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papRecordInusePQ];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1410;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= USS;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papOffsetofReferencedLowerLevelDirectoryEntityPQ];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1420;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UL;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papDirectoryRecordTypePQ];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1430;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= CS;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papPrivateRecordUIDPQ];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1432;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UI;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papReferencedFileIDPQ];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1500;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= CS;
  theWrkP->vm 	 	= "1-n";
  theWrkP->type_t 	= T2C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papMRDRDirectoryRecordOffsetPQ];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1504;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UL;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papReferencedSOPClassUIDinFilePQ];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1510;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UI;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papReferencedSOPInstanceUIDinFilePQ];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1511;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UI;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papReferencedTransferSyntaxUIDinFilePQ];
  theWrkP->group 	= 0x0004;
  theWrkP->element 	= 0x1512;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= UI;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papPrintQueueIDDRPQ];
  theWrkP->group 	= 0x2110;
  theWrkP->element 	= 0x0099;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= SH;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papSpecificCharacterSetDRPQ];
  theWrkP->group 	= 0x0008;
  theWrkP->element 	= 0x0005;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= CS;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T1C;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
  theWrkP		= &ioElem [papPrinterNameDRPQ];
  theWrkP->group 	= 0x2110;
  theWrkP->element 	= 0x0030;
  theWrkP->length 	= 0L;
  theWrkP->vr 	 	= LO;
  theWrkP->vm 	 	= "1";
  theWrkP->type_t 	= T2;
  theWrkP->nb_val 	= 0;
  theWrkP->value 	= NULL;
}
void init_PrintQueue ( SElement ioElem [ ] ) { SElement * theWrkP ; theWrkP = & ioElem [ papOffsetofNextDirectoryRecordPQ ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1400 ; theWrkP -> length = 0L ; theWrkP -> vr = UL ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papRecordInusePQ ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1410 ; theWrkP -> length = 0L ; theWrkP -> vr = USS ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papOffsetofReferencedLowerLevelDirectoryEntityPQ ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1420 ; theWrkP -> length = 0L ; theWrkP -> vr = UL ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papDirectoryRecordTypePQ ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1430 ; theWrkP -> length = 0L ; theWrkP -> vr = CS ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papPrivateRecordUIDPQ ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1432 ; theWrkP -> length = 0L ; theWrkP -> vr = UI ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papReferencedFileIDPQ ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1500 ; theWrkP -> length = 0L ; theWrkP -> vr = CS ; theWrkP -> vm = " " ; theWrkP -> type_t = T2C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papMRDRDirectoryRecordOffsetPQ ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1504 ; theWrkP -> length = 0L ; theWrkP -> vr = UL ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papReferencedSOPClassUIDinFilePQ ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1510 ; theWrkP -> length = 0L ; theWrkP -> vr = UI ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papReferencedSOPInstanceUIDinFilePQ ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1511 ; theWrkP -> length = 0L ; theWrkP -> vr = UI ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papReferencedTransferSyntaxUIDinFilePQ ] ; theWrkP -> group = 0x0004 ; theWrkP -> element = 0x1512 ; theWrkP -> length = 0L ; theWrkP -> vr = UI ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papPrintQueueIDDRPQ ] ; theWrkP -> group = 0x2110 ; theWrkP -> element = 0x0099 ; theWrkP -> length = 0L ; theWrkP -> vr = SH ; theWrkP -> vm = " " ; theWrkP -> type_t = T1 ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papSpecificCharacterSetDRPQ ] ; theWrkP -> group = 0x0008 ; theWrkP -> element = 0x0005 ; theWrkP -> length = 0L ; theWrkP -> vr = CS ; theWrkP -> vm = " " ; theWrkP -> type_t = T1C ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; theWrkP = & ioElem [ papPrinterNameDRPQ ] ; theWrkP -> group = 0x2110 ; theWrkP -> element = 0x0030 ; theWrkP -> length = 0L ; theWrkP -> vr = LO ; theWrkP -> vm = " " ; theWrkP -> type_t = T2 ; theWrkP -> nb_val = 0 ; theWrkP -> value = NULL ; }
init_PrintQueue : initializes the elements of the Directory Record
Print Queue
init_PrintQueue : initializes the elements of the Directory Record Print Queue