File: UmlTypeSpec.h

package info (click to toggle)
bouml 2.19.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 42,364 kB
  • ctags: 33,402
  • sloc: cpp: 169,092; makefile: 135
file content (29 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (28)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef _UMLTYPESPEC_H
#define _UMLTYPESPEC_H


#include <qcstring.h>

class UmlClass;

// this class memorize a type specification, which may be
//
// - a class reference
//
// - an explicit type
class UmlTypeSpec {
  public:
    // significant in case type == 0
    QCString explicit_type;

    // if != 0 the class representing the type
    UmlClass * type;

    UmlTypeSpec() : type(0) {};

    // returns the type as a string in all cases
    const QCString & toString() const;

};

#endif