Creating a FrameSet

Before we can create a FrameSetFrameSet, we must have a FrameFrame of some kind to put into it, so let's create a simple one:

#include "ast.h"
AstFrame *frame1;

...

frame1 = astFrame( 2, "Domain=A" );

We have set this Frame's DomainDomain attribute (7.12) to A so that it will be distinct from the others we will be using. We can now create a new FrameSet containing just this Frame, as follows:

AstFrameSet *frameset;

...

frameset = astFrameSet( frame1, "" );

So far, however, this Frame isn't related to any others.