Esempio n. 1
0
    void WriteStringArray(const SC_StringArray& strings)
    {

        WriteInt(strings.Size());
        WriteInt(strings.GetStringLen());
        WriteLine();
        for (int i = 0; i < strings.Size(); i++ )
            {
                WriteText(strings[i]);
            }
    }
Esempio n. 2
0
void DFO_TableTranspose::SetDesc(SC_StringArray& descStr, 
                                    const char*     desc,
                                    int             nreq)
{
    int ndesc = descStr.Size();
    if (ndesc < nreq)
    {
        for (int i = ndesc; i < nreq; i++)
        {
            char tempStr[80];
            CopyString(tempStr, desc, 80);
            ConcatInt(i, tempStr, 3, 80);
            descStr.SetString(tempStr, i);
        }
        descStr.SetSize(nreq);
    }
}
Esempio n. 3
0
BOOL CAutoFitDlg::OnInitDialog()
{
    AutoFitCheckOK();

    m_uprocessTestZonePressureData.Set(this, IDC_AUTO_MAINPRESSURE, processTestZonePressureData);
    m_uprocessTestZonePressureData.AddCallback(this);

    m_uprocessTestZoneFlowData.Set(this, IDC_AUTO_MAINFLOW, processTestZoneFlowData);
    m_uprocessTestZoneFlowData.AddCallback(this);

    m_uprocessObsWellPressureData.Set(this, IDC_AUTO_OBSPRESSURE, processObsWellPressureData);
    m_uprocessObsWellPressureData.AddCallback(this);

    SC_StringArray dummy;
    obsOK = DataCaptureStaticSupport::GetWellIDs(dummy) && (dummy.Size() > 1);

    int idStart = IDC_CHECK1;

    m_ucartesianSpec.Set(this, idStart);
    m_ucartesianSpec.m_udoExtract.AddCallback(this);

    m_uflowSpec.Set(this, idStart);
    m_uflowSpec.m_udoExtract.AddCallback(this);

    m_uhistSpec.Set(this, idStart);
    m_uhistSpec.m_udoExtract.AddCallback(this);

    m_upulseSpec.Set(this, idStart);
    m_upulseSpec.m_udoExtract.AddCallback(this);

    m_uslugSpec.Set(this, idStart);
    m_uslugSpec.m_udoExtract.AddCallback(this);

    CDialog::OnInitDialog();

    CheckRestrictions();

    return TRUE;
}