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

DSIGReferenceList.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 2002-2005 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  * limitations 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.9 2005/06/04 11:30:25 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 
00057 class DSIG_EXPORT DSIGReferenceList {
00058 
00059 public:
00060 
00061 #if defined(XSEC_NO_NAMESPACES)
00062     typedef vector<DSIGReference *>         ReferenceListVectorType;
00063 #else
00064     typedef std::vector<DSIGReference *>    ReferenceListVectorType;
00065 #endif
00066 
00067 #if defined(XSEC_SIZE_T_IN_NAMESPACE_STD)
00068     typedef std::size_t     size_type;
00069 #else
00070     typedef size_t          size_type;
00071 #endif
00072 
00075 
00080     DSIGReferenceList();
00081 
00090     ~DSIGReferenceList();
00091 
00093 
00096 
00104     void addReference(DSIGReference * ref);
00105 
00120     DSIGReference * removeReference(size_type index);
00121 
00130     DSIGReference * item(size_type index);
00131 
00138     size_type   getSize();
00139 
00146     bool empty();
00147 
00149 
00150 private:
00151 
00152     ReferenceListVectorType                 m_referenceList;
00153 
00154 };
00155 
00156 
00157 #endif /* DSIGREFERENCELIST_INCLUDE */

Generated on Sun Jul 3 17:37:25 2005 for XML-Security-C by  doxygen 1.4.2