Exemplo n.º 1
0
void PosLen::setPos(const Pos& pos)
      {
      switch(pos.type()) {
            case FRAMES:
                  setFrame(pos.frame());
                  break;
            case TICKS:
                  setTick(pos.tick());
                  break;
            }
      }
Exemplo n.º 2
0
Arquivo: pos.cpp Projeto: faesong/oom
Pos operator+(Pos a, int b)
{
    Pos c;
    c.setType(a.type());
    return c += b;
}