File: UmlOperation.cpp

package info (click to toggle)
bouml 4.21-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 73,336 kB
  • ctags: 55,459
  • sloc: cpp: 290,644; makefile: 228; sh: 13
file content (17 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#include "UmlOperation.h"

#include "UmlCom.h"
bool UmlOperation::check() {
  if (name() == parent()->name()) {
    UmlCom::trace("<font face=helvetica><b>already have <i>constructor</i>, remove it</b></font><br><hr><br>");
    return FALSE;
  }
  else if (name() == "instance") {
    UmlCom::trace("<font face=helvetica><b>already have operation <i>instance</i>, remove it</b></font><br><hr><br>");
    return FALSE;
  }
  else
    return TRUE;
}