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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
// *************************************************************************
//
// Copyright 2004-2010 Bruno PAGES .
//
// This file is part of the BOUML Uml Toolkit.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// e-mail : bouml@free.fr
// home : http://bouml.free.fr
//
// *************************************************************************
#ifndef OBJECTDATA_H
#define OBJECTDATA_H
#include <qtextstream.h>
#include "AType.h"
#include "UmlEnum.h"
class BrowserClass;
class ObjectData {
private:
AType type;
public:
SharedStr multiplicity;
MyStr in_state;
MyStr uml_selection;
MyStr cpp_selection;
MyStr java_selection;
UmlOrderingKind ordering : 8;
bool is_control : 1;
ObjectData();
ObjectData(ObjectData * model);
virtual ~ObjectData();
virtual void do_connect(BrowserClass * c) = 0;
virtual void do_disconnect(BrowserClass * c) = 0;
const AType & get_type() const { return type; };
void set_type(BrowserClass * c);
void set_type(const AType & t);
const char * get_multiplicity() const { return multiplicity; };
const char * get_in_state() const { return in_state; };
const char * get_selection(DrawingLanguage) const;
UmlOrderingKind get_ordering() const { return ordering; }
bool get_is_control() const { return is_control; }
void send_uml_def(ToolCom * com);
virtual void send_cpp_def(ToolCom * com);
virtual void send_java_def(ToolCom * com);
bool tool_cmd(ToolCom * com, const char * args);
void save(QTextStream &, QString & warning) const;
void read(char * &, char * &);
};
#endif
|