Пример #1
0
void
PutPsFile()
{
    Prologue();
    Variables();
    BorderOutlineBox();

    if (bflag) {
	BigTitleOutlineBox();
        BigTitleText();
    } else {
	TitleOutlineBox();
	TitleText();
    }

    CurvesInit();

    Axes();

    if (TWENTY) Key();

    Curves();

    if (!yflag) Marks();

    fprintf(psfp, "showpage\n");
}
Пример #2
0
boolean PostScriptViews::Emit (ostream& out) {
    SetPSFonts();

    Graphic* g = GetGraphicComp()->GetGraphic();
    Transformer* t = SaveTransformer(g);
    ScaleToPostScriptCoords(g);

    Comments(out);
    Prologue(out);
    Version(out);
    GridSpacing(out);

    out << "\n\n%%Page: 1 1\n\n";
    out << "Begin\n";
    FullGS(out);
    out << "/originalCTM matrix currentmatrix def\n\n";

    boolean status = PreorderView::Definition(out);

    out << "End " << MARK << " eop\n\n";
    out << "showpage\n\n";

    Trailer(out);
    RestoreTransformer(g, t);

    return status;
}
Пример #3
0
int xa_open    (char * xa_info, int rmid, long flags)
{   int rc;
    char new_xa_info[512];

    ReformatOpenString(xa_info, new_xa_info, TRUE);
       /* convert ODBC DSN and info to Ingres format XA OpenString */
    
    Prologue("xa_open");  /* single thread LIBQXA  and set error handler */     
    ReformatOpenString(xa_info, errlog_xa_info, FALSE);  /* xa_info w/o passwords*/
    rc=piixa_switch->xa_open_entry(new_xa_info, rmid, flags);
    Epilogue();
    return(rc);


//    char s[512];
//    memset(s,'\0',sizeof(s));
//    wsprintf(s,"rmid=0x%8.8x   flags=0x%8.8x\n",(long)rmid, flags);
//    strcpy(s,"xa_info=");
//    if (xa_info)
//       strncat(s,xa_info,sizeof(s)-10);
//    else 
//       strcat(s,"<null>");
//    MessageBox(NULL, s, "xa_open", MB_ICONINFORMATION|MB_OK);
//    return XA_OK;
}
Пример #4
0
void
PutPsFile(void)
{
    Prologue();
    Variables();

    CurvesInit();

    DoTitleAndBox();

    if (multipageflag) {
      Key(); // print multi-page key even if there are more than 20 bands 
      NextPage();
    }

    Axes();

    if (!multipageflag && (TWENTY != 0)) Key();

    Curves();

    if (!yflag) Marks();

    fprintf(psfp, "showpage\n");
}
Пример #5
0
int xa_complete(int * handle, int * retval, int rmid, long flags)
{   int rc;

    Prologue("xa_complete");  /* single thread LIBQXA  and set error handler */     
    rc=piixa_switch->xa_complete_entry(handle, retval, rmid, flags);
    Epilogue();
    return(rc);
}
Пример #6
0
int xa_forget  (XID * xid, int rmid, long flags)
{   int rc;

    Prologue("xa_forget");  /* single thread LIBQXA  and set error handler */     
    rc=piixa_switch->xa_forget_entry(xid, rmid, flags);
    Epilogue();
    return(rc);
}
Пример #7
0
int xa_recover (XID * xids, long count, int rmid, long flags)
{   int rc;

    Prologue("xa_recover");  /* single thread LIBQXA  and set error handler */     
    rc=piixa_switch->xa_recover_entry(xids, count, rmid, flags);
    Epilogue();
    return(rc);
}
Пример #8
0
int xa_close   (char * xa_info, int rmid, long flags)
{   int rc;

    Prologue("xa_close");  /* single thread LIBQXA  and set error handler */     
    rc=piixa_switch->xa_close_entry(xa_info, rmid, flags);
    Epilogue();
    return(rc);

}
void CRUUnAuditRefreshTaskExecutor::Work()
{
	switch (GetState())
	{
	case EX_START: // MAIN PROCESS
		{
			RUASSERT(FALSE == IsTransactionOpen());
			Start();
			break;
		}
	case EX_PROLOGUE: // MAIN PROCESS
		{
			RUASSERT(FALSE == IsTransactionOpen());
			// Turn the MV (+ optionally its indexes) non-available
			Prologue();
			break;
		}
	case EX_PURGE_DATA: // MAIN PROCESS
		{
			RUASSERT(FALSE == IsTransactionOpen());
			// Execute purgedata from the MV (with indexes)
			PurgeData();			
			break;
		}
	case EX_REFRESH: // REMOTE PROCESS
		{
			RUASSERT(FALSE == IsTransactionOpen());
			// Execute the incremental INTERNAL REFRESH
			Refresh();
			break;
		}
	case EX_RECOMPUTE: // REMOTE PROCESS
		{
			// Execute INTERNAL REFRESH RECOMPUTE
			Recompute();
			break;
		}
	case EX_POPINDEX:	// REMOTE PROCESS
		{
			RUASSERT(FALSE == IsTransactionOpen());
			PopulateIndexes();
			break;
		}
	case EX_EPILOGUE:	// MAIN PROCESS
		{
			RUASSERT(FALSE == IsTransactionOpen());
			// Turn the MV (+ optionally indexes) back to available
			// Perform the final metadata update
			Epilogue();
			break;
		}
	default: RUASSERT(FALSE);
	}
}
Пример #10
0
void Plugin::ExecuteFunction(ExecuteStruct& es, const std::function<void()>& f)
{
	Prologue();
	++Activity;
	try
	{
		f();
	}
	catch (SException &e)
	{
		if (ProcessSEHException(this, m_model->GetExportName(es.id), e.GetInfo()))
		{
			m_model->GetOwner()->UnloadPlugin(this, es.id);
			es.Result = es.Default;
			Global->ProcessException=FALSE;
		}
		else
		{
			throw;
		}
	}
	catch (std::exception &e)
	{
		if (ProcessStdException(e, this, m_model->GetExportName(es.id)))
		{
			m_model->GetOwner()->UnloadPlugin(this, es.id);
			es.Result = es.Default;
			Global->ProcessException = FALSE;
		}
		else
		{
			throw;
		}
	}
	--Activity;
	Epilogue();
}
Пример #11
0
void PutFile()
{

  MakeIdentTable();
  SortIdentTable(); /* Sort identifiers by size. */
  TopBands();       /* Keep only noOfBands bands and put rest in an other group. */
  Dimensions(); 
  Scale();

  #if PRINT_IDENT_TABLE
    printIdentTable();
  #endif  

  /* Start printing graph. */
  Prologue();
  output->Fonts();
  BorderOutlineBox();

  TitleOutlineBox();
  TitleText();
  
  CurvesInit();
  
  Key();
  
  Curves();

  Axes();

  if (showMax)
    drawMaxValue(maxValue, maxValueStr);
  if (mflag) Marks();
  if (cflag) Comments();
  output->Prologue();

  return;
}
Пример #12
0
		CHandleAnRMI( bool bClient, EntityId objID, const SFunctionDispatch& info, TSerialize ser, CGameContext * pContext, INetChannel * pChannel ) : CScriptRMISerialize(info.format), m_bClient(bClient), m_pContext(pContext), m_objID(objID), m_pChannel(pChannel)
		{
			Prologue( info.name, info.format );
			SerializeWith( ser );
		}
void CRUAuditRefreshTaskExecutor::Work()
{
	switch (GetState())
	{
	case EX_START: // MAIN PROCESS
		{
			// This state only logs the opening message
			Start();
			break;
		}	
	case EX_PROLOGUE: // MAIN PROCESS
		{
			// This state just starts a transaction  
			Prologue();
			break;
		}
	case EX_PURGE_DATA: // MAIN PROCESS
		{
			RUASSERT(FALSE == IsTransactionOpen());
			// Execute purgedata from the MV (with indexes)
			PurgeData();			
			break;
		}
        case EX_REMOTE_START:
                {
                        // this state starts up the table lock protocol
                        // and starts a transaction                 
                        RemoteStart();
                        break;
                }
	case EX_RECOMPUTE: // REMOTE PROCESS
		{
			// This state execute an internal refresh recompute statement 
			Recompute();
			break;
		}
	case EX_REFRESH: // REMOTE PROCESS
		{
			// This state execute an internal refresh statement 
			// It may be a multi delta refresh or a single delta refresh
			Refresh();
			break;
		}
        case EX_POPINDEX:	// REMOTE PROCESS
		{
			RUASSERT(FALSE == IsTransactionOpen());
			PopulateIndexes();
			break;
		}        
	case EX_REMOTE_END: // REMOTE PROCESS
		{
			RemoteEnd();
			break;
		}
	case EX_EPILOGUE: // MAIN PROCESS
		{
			// Update all meta-data concerning the mv and used tables objects
			Epilogue();
			break;
		}
	default: RUASSERT(FALSE);
	}
}