Back to index

salome-gui  6.5.0
Functions
CAF_Operation.cxx File Reference
#include "CAF_Operation.h"
#include "CAF_Study.h"
#include "CAF_Application.h"
#include <TDocStd_Document.hxx>

Go to the source code of this file.

Functions

 Handle (TDocStd_Document) CAF_Operation
 Get OCAF document.

Function Documentation

Handle ( TDocStd_Document  )

Get OCAF document.

Returns:
handle to the OCAF document object

Definition at line 57 of file CAF_Operation.cxx.

{
  Handle(TDocStd_Document) doc;
  CAF_Study* s = qobject_cast<CAF_Study*>( study() );
  if ( s )
    doc = s->stdDoc();
  return doc;
}