version 1.25, 2004/05/28 12:20:11
|
version 1.31, 2006/11/14 18:34:58
|
|
|
//%2003//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Development |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L. P., IBM Corp., The Open Group, Tivoli Systems. |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; | // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; |
// IBM Corp.; EMC Corporation, The Open Group. | // IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) |
|
// |
|
// Modified By: Carol Ann Krug Graves, Hewlett-Packard Company |
|
// (carolann_graves@hp.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef Pegasus_InheritanceTree_h | #ifndef Pegasus_InheritanceTree_h |
|
|
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
#include <Pegasus/Common/InternalException.h> | #include <Pegasus/Common/InternalException.h> |
#include <Pegasus/Repository/Linkage.h> | #include <Pegasus/Repository/Linkage.h> |
#include <Pegasus/Common/MessageLoader.h> //l10n |
#include <Pegasus/Common/MessageLoader.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
@param superClassName - name of super class of class. | @param superClassName - name of super class of class. |
*/ | */ |
void insert(const String& className, const String& superClassName); | void insert(const String& className, const String& superClassName); |
void insert(const String& className, const String& superClassName, |
void insert( |
InheritanceTree &parentTree, NameSpace *parent); |
const String& className, |
|
const String& superClassName, |
|
InheritanceTree& parentTree, |
|
NameSpace* parent); |
| |
/** Scan directory for file names of the form <ClassName>.<SuperClass> and | /** Scan directory for file names of the form <ClassName>.<SuperClass> and |
call insert on insert for each one. Note that root classes (classes with | call insert on insert for each one. Note that root classes (classes with |
|
|
| |
InheritanceTreeRep* _rep; | InheritanceTreeRep* _rep; |
| |
friend class InheritanceTreeNode; |
friend struct InheritanceTreeNode; |
}; | }; |
| |
/** The InvalidInheritanceTree exception is thrown when the | /** The InvalidInheritanceTree exception is thrown when the |
|
|
was not fully specified (when any class was passed as a superClassName | was not fully specified (when any class was passed as a superClassName |
argument to insert() but never as a className argument. | argument to insert() but never as a className argument. |
*/ | */ |
class InvalidInheritanceTree : public Exception |
class PEGASUS_REPOSITORY_LINKAGE InvalidInheritanceTree : public Exception |
{ | { |
public: | public: |
//l10n start |
|
//InvalidInheritanceTree(const String& className) |
|
//: Exception("Invalid inheritance tree: unknown class: " + className) { } |
|
InvalidInheritanceTree(const String& className) | InvalidInheritanceTree(const String& className) |
: Exception(MessageLoaderParms("Repository.InheritanceTree.INVALID_INHERITANCE_TREE", |
: Exception(MessageLoaderParms( |
"Invalid inheritance tree: unknown class: $0", className)) { } |
"Repository.InheritanceTree.INVALID_INHERITANCE_TREE", |
//l10n end |
"Invalid inheritance tree: unknown class: $0", className)) |
|
{ |
|
} |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |