Main Page | Modules | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

DSIGReferenceList.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-2004 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * imitations under the License.
00015  */
00016 
00017 /*
00018  * XSEC
00019  *
00020  * DSIGReferenceList := Class for Loading and storing a list of references
00021  *
00022  * $Id: DSIGReferenceList.hpp,v 1.6 2004/02/08 10:20:51 blautenb Exp $
00023  *
00024  */
00025 
00026 #ifndef DSIGREFERENCELIST_INCLUDE
00027 #define DSIGREFERENCELIST_INCLUDE
00028 
00029 
00030 // XSEC Includes
00031 #include <xsec/framework/XSECDefs.hpp>
00032 //#include <dsig/DSIGReference.hpp>
00033 
00034 // General includes
00035 #include <vector>
00036 
00037 class DSIGReference;
00038 
00058 class DSIG_EXPORT DSIGReferenceList {
00059 
00060 public:
00061 
00062 #if defined(XSEC_NO_NAMESPACES)
00063     typedef vector<DSIGReference *>         ReferenceListVectorType;
00064 #else
00065     typedef std::vector<DSIGReference *>    ReferenceListVectorType;
00066 #endif
00067 
00068 #if defined(XSEC_SIZE_T_IN_NAMESPACE_STD)
00069     typedef std::size_t     size_type;
00070 #else
00071     typedef size_t          size_type;
00072 #endif
00073 
00076 
00081     DSIGReferenceList();
00082 
00091     ~DSIGReferenceList();
00092 
00094 
00097 
00105     void addReference(DSIGReference * ref);
00106 
00121     DSIGReference * removeReference(size_type index);
00122 
00131     DSIGReference * item(size_type index);
00132 
00139     size_type   getSize();
00140 
00147     bool empty();
00148 
00150 
00151 private:
00152 
00153     ReferenceListVectorType                 m_referenceList;
00154 
00155 };
00156 
00157 
00158 #endif /* DSIGREFERENCELIST_INCLUDE */

Generated on Sun Mar 14 20:20:34 2004 for XML-Security-C by doxygen 1.3.2