1
// Copyright (C) 2007, 2008 Free Software Foundation, Inc.
3
// This program is free software; you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation; either version 3 of the License, or
6
// (at your option) any later version.
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License
14
// along with this program; if not, write to the Free Software
15
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
#ifndef GNASH_AS_NAME_H
18
#define GNASH_AS_NAME_H
29
/// If true, the name needs a run-time string value to complete it.
30
bool isRuntime() { return (mFlags & FLAG_RTNAME) != 0; }
32
/// If true, the name needs a run-time namespace to complete it.
33
bool isRtns() { return (mFlags & FLAG_RTNS) != 0; }
35
bool isQName() { return (mFlags & FLAG_QNAME) != 0; }
36
void setQName() { mFlags |= FLAG_QNAME; }
38
void setNamespace(asNamespace *ns) { mNamespace = ns; mPairName = 0; }
39
asNamespace* getNamespace() const { return mNamespace; }
41
string_table::key getName() const { return mName; }
42
void setName(string_table::key n) { mName = n; mPairName = 0; }
44
void setAttr() { mFlags |= FLAG_ATTR; }
46
void fill(as_object*) {/*TODO*/}
48
Property* findProperty();
57
KIND_RTQnameLA = 0x12,
58
KIND_Multiname = 0x09,
59
KIND_MultinameA = 0x0E,
60
KIND_MultinameL = 0x1B,
61
KIND_MultinameLA = 0x1C
72
boost::uint8_t mFlags;
73
std::vector<asNamespace*> *mNamespaceSet;
75
asName() : mFlags(0), mNamespaceSet(NULL), mName(0), mPairName(0),
79
string_table::key mName;
80
string_table::key mPairName; // Pre-computed ns.name value
81
asNamespace* mNamespace;
84
} // end of namespace gnash
85
#endif /* GNASH_AS_NAME_H */