// simple example for Local BCA ... reading doubles from a table

vector<double> ReadDataLocalBCASingleField()
{
    // declare our BCA locally
    // note how we bind using the COLS class to identify columns
        
    double rowbuf;  // row object used by BCA() to guide binding process
    
    DBView<double> view("DB_EXAMPLE",
        BCA(rowbuf, COLS["DOUBLE_VALUE"] >> rowbuf)
    );

    // copy the doubles from the view into the vector and return
    vector<double> results;
    copy(view.begin(), view.end(), back_inserter(results));
    return results;
}