CTC++ Coverage Report - Execution Profile   #5/7

Directory Summary | Files Summary | Functions Summary | Untested Code | Execution Profile
To files: First | Previous | Next | Last | Index | No Index


File: F:\ctcwork\demos\cube\cubedoc.cpp
Instrumentation mode: multicondition
TER: 72 % (21/29), 75 % (15/20) statement

Hits/True False -Line Source

 // cubedoc.cpp : implementation of the CCubeDoc class
 //
 // This is a part of the Microsoft Foundation Classes C++ library.
 // Copyright (c) Microsoft Corporation.  All rights reserved.
 //
 // This source code is only intended as a supplement to the
 // Microsoft Foundation Classes Reference and related
 // electronic documentation provided with the library.
 // See these sources for detailed information regarding the
 10 // Microsoft Foundation Classes product.
 11 
 12 #include "stdafx.h"
 13 #include "cube.h"
 14 
 15 #include "cubedoc.h"
 16 
 17 #ifdef _DEBUG
 18 #undef THIS_FILE
 19 static char BASED_CODE THIS_FILE[] = __FILE__;
 20 #endif
 21 
 22 /////////////////////////////////////////////////////////////////////////////
 23 // CCubeDoc
 24 
Top
  25 IMPLEMENT_DYNCREATE(CCubeDoc, CDocument)
  25   return new CCubeDoc
   25 }
Top
6322   25 FUNCTION CCubeDoc::_GetBaseClass()
6322   25   return ( CDocument::GetThisClass ( ) )
   25 }
Top
276   25 FUNCTION CCubeDoc::GetThisClass()
276   25   return ( ( CRuntimeClass * ) ( & CCubeDoc::classCCubeDoc ) )
   25 }
Top
67380   25 FUNCTION CCubeDoc::GetRuntimeClass()
67380   25   return ( ( CRuntimeClass * ) ( & CCubeDoc::classCCubeDoc ) )
   25 }
 26 
Top
12670   27 BEGIN_MESSAGE_MAP(CCubeDoc, CDocument)
12670   27   return GetThisMessageMap ( )
   27 }
Top
12670   27 FUNCTION CCubeDoc::GetThisMessageMap()
 28    //{{AFX_MSG_MAP(CCubeDoc)
 29       // NOTE - the ClassWizard will add and remove mapping macros here.
 30       //    DO NOT EDIT what you see in these blocks of generated code!
 31    //}}AFX_MSG_MAP
12670   32 END_MESSAGE_MAP()
   32 }
 33 
 34 /////////////////////////////////////////////////////////////////////////////
 35 // CCubeDoc construction/destruction
 36 
Top
  37 CCubeDoc::CCubeDoc()
 38 {
 39    // TODO: add one-time construction code here
 40 
  41 }
 42 
Top
  43 CCubeDoc::~CCubeDoc()
 44 {
  45 }
 46 
Top
  47 BOOL CCubeDoc::OnNewDocument()
 48 {
-49    if (!CDocument::OnNewDocument())
 -50       return FALSE;
 51 
 52    // TODO: add reinitialization code here
 53    // (SDI documents will reuse this document)
 54 
  55    return TRUE;
   56 }
 57 
 58 /////////////////////////////////////////////////////////////////////////////
 59 // CCubeDoc serialization
 60 
Top
 -61 void CCubeDoc::Serialize(CArchive& ar)
 62 {
-63    if (ar.IsStoring())
 64    {
 65       // TODO: add storing code here
 66    }
   67    else
 68    {
 69       // TODO: add loading code here
 70    }
 -71 }
 72 
 73 /////////////////////////////////////////////////////////////////////////////
 74 // CCubeDoc diagnostics
 75 
 76 #ifdef _DEBUG
Top
60786   77 void CCubeDoc::AssertValid() const
 78 {
 79    CDocument::AssertValid();
60786   80 }
 81 
Top
 -82 void CCubeDoc::Dump(CDumpContext& dc) const
 83 {
 84    CDocument::Dump(dc);
 -85 }
 86 #endif //_DEBUG
 87 
 88 /////////////////////////////////////////////////////////////////////////////
 89 // CCubeDoc commands
***TER 72% (21/29) of SOURCE FILE cubedoc.cpp
75% (15/20) statement

Directory Summary | Files Summary | Functions Summary | Untested Code | Execution Profile
To files: First | Previous | Next | Last | Top | Index | No Index