Beispiel #1
0
void PosLen::setPos(const Pos& pos)
      {
      switch(pos.type()) {
            case FRAMES:
                  setFrame(pos.frame());
                  break;
            case TICKS:
                  setTick(pos.tick());
                  break;
            }
      }
Beispiel #2
0
Pos operator+(Pos a, int b)
{
    Pos c;
    c.setType(a.type());
    return c += b;
}