summaryrefslogtreecommitdiffstats
path: root/Source/cmXCodeObject.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-01-25 20:26:57 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-01-25 20:26:57 (GMT)
commit96daa417cb8ee1dffd3f5e17e7b3c76df31d5b73 (patch)
tree4fd722a406a18346ac4bb90e9fb66b1e7503357c /Source/cmXCodeObject.h
parente07af61e51618d60a32aedb268fdc0854624f0dd (diff)
downloadCMake-96daa417cb8ee1dffd3f5e17e7b3c76df31d5b73.zip
CMake-96daa417cb8ee1dffd3f5e17e7b3c76df31d5b73.tar.gz
CMake-96daa417cb8ee1dffd3f5e17e7b3c76df31d5b73.tar.bz2
ENH: add initial non-working XCode stuff
Diffstat (limited to 'Source/cmXCodeObject.h')
-rw-r--r--Source/cmXCodeObject.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmXCodeObject.h b/Source/cmXCodeObject.h
index 819e3a5..a3ca650 100644
--- a/Source/cmXCodeObject.h
+++ b/Source/cmXCodeObject.h
@@ -6,7 +6,7 @@
class cmXCodeObject
{
public:
- enum Type { OBJECT_LIST, ATTRIBUTE_GROUP, OBJECT_REF, OBJECT };
+ enum Type { OBJECT_LIST, STRING, ATTRIBUTE_GROUP, OBJECT_REF, OBJECT };
enum PBXType { PBXGroup, PBXBuildStyle, PBXProject, PBXHeadersBuildPhase,
PBXSourcesBuildPhase, PBXFrameworksBuildPhase, PBXNativeTarget,
PBXFileReference, PBXBuildFile, PBXContainerItemProxy, PBXTargetDependency,
@@ -17,10 +17,11 @@ public:
static const char* PBXTypeNames[];
cmXCodeObject(PBXType ptype, Type type);
- void AddAttribute(const char* name, const char* value)
+ void SetString(const char* s)
{
- m_StringAttributes[name] = value;
+ m_String = s;
}
+
void AddAttribute(const char* name, cmXCodeObject* value)
{
m_ObjectAttributes[name] = value;
@@ -45,9 +46,9 @@ private:
Type m_Type;
cmStdString m_Id;
PBXType m_IsA;
+ cmStdString m_String;
cmXCodeObject* m_Object;
std::vector<cmXCodeObject*> m_List;
std::map<cmStdString, cmXCodeObject*> m_ObjectAttributes;
- std::map<cmStdString, cmStdString> m_StringAttributes;
};
#endif