Changeset 6026 for pjproject/trunk/pjsip/src/pjsua2/persistent.cpp
- Timestamp:
- Jun 12, 2019 6:00:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/persistent.cpp
r4704 r6026 28 28 } 29 29 30 string PersistentDocument::unreadName() const throw(Error)30 string PersistentDocument::unreadName() const PJSUA2_THROW(Error) 31 31 { 32 32 return getRootContainer().unreadName(); 33 33 } 34 34 35 int PersistentDocument::readInt(const string &name) const throw(Error)35 int PersistentDocument::readInt(const string &name) const PJSUA2_THROW(Error) 36 36 { 37 37 return (int)getRootContainer().readNumber(name); 38 38 } 39 39 40 float PersistentDocument::readNumber(const string &name) const throw(Error) 40 float PersistentDocument::readNumber(const string &name) const 41 PJSUA2_THROW(Error) 41 42 { 42 43 return getRootContainer().readNumber(name); 43 44 } 44 45 45 bool PersistentDocument::readBool(const string &name) const throw(Error) 46 bool PersistentDocument::readBool(const string &name) const 47 PJSUA2_THROW(Error) 46 48 { 47 49 return getRootContainer().readBool(name); 48 50 } 49 51 50 string PersistentDocument::readString(const string &name) const throw(Error) 52 string PersistentDocument::readString(const string &name) const 53 PJSUA2_THROW(Error) 51 54 { 52 55 return getRootContainer().readString(name); … … 54 57 55 58 StringVector PersistentDocument::readStringVector(const string &name) const 56 throw(Error)59 PJSUA2_THROW(Error) 57 60 { 58 61 return getRootContainer().readStringVector(name); 59 62 } 60 63 61 void PersistentDocument::readObject(PersistentObject &obj) const throw(Error) 64 void PersistentDocument::readObject(PersistentObject &obj) const 65 PJSUA2_THROW(Error) 62 66 { 63 67 getRootContainer().readObject(obj); … … 65 69 66 70 ContainerNode PersistentDocument::readContainer(const string &name) const 67 throw(Error)71 PJSUA2_THROW(Error) 68 72 { 69 73 return getRootContainer().readContainer(name); … … 71 75 72 76 ContainerNode PersistentDocument::readArray(const string &name) const 73 throw(Error)77 PJSUA2_THROW(Error) 74 78 { 75 79 return getRootContainer().readArray(name); … … 77 81 78 82 void PersistentDocument::writeNumber(const string &name, 79 float num) throw(Error)83 float num) PJSUA2_THROW(Error) 80 84 { 81 85 getRootContainer().writeNumber(name, num); … … 83 87 84 88 void PersistentDocument::writeInt(const string &name, 85 int num) throw(Error)89 int num) PJSUA2_THROW(Error) 86 90 { 87 91 getRootContainer().writeNumber(name, (float)num); … … 89 93 90 94 void PersistentDocument::writeBool(const string &name, 91 bool value) throw(Error)95 bool value) PJSUA2_THROW(Error) 92 96 { 93 97 getRootContainer().writeBool(name, value); … … 95 99 96 100 void PersistentDocument::writeString(const string &name, 97 const string &value) throw(Error)101 const string &value) PJSUA2_THROW(Error) 98 102 { 99 103 getRootContainer().writeString(name, value); … … 102 106 void PersistentDocument::writeStringVector(const string &name, 103 107 const StringVector &value) 104 throw(Error)108 PJSUA2_THROW(Error) 105 109 { 106 110 getRootContainer().writeStringVector(name, value); 107 111 } 108 112 109 void PersistentDocument::writeObject(const PersistentObject &obj) throw(Error) 113 void PersistentDocument::writeObject(const PersistentObject &obj) 114 PJSUA2_THROW(Error) 110 115 { 111 116 getRootContainer().writeObject(obj); … … 113 118 114 119 ContainerNode PersistentDocument::writeNewContainer(const string &name) 115 throw(Error)120 PJSUA2_THROW(Error) 116 121 { 117 122 return getRootContainer().writeNewContainer(name); … … 119 124 120 125 ContainerNode PersistentDocument::writeNewArray(const string &name) 121 throw(Error)126 PJSUA2_THROW(Error) 122 127 { 123 128 return getRootContainer().writeNewArray(name); … … 131 136 } 132 137 133 string ContainerNode::unreadName() const throw(Error)138 string ContainerNode::unreadName() const PJSUA2_THROW(Error) 134 139 { 135 140 return op->unreadName(this); 136 141 } 137 142 138 int ContainerNode::readInt(const string &name) const throw(Error)143 int ContainerNode::readInt(const string &name) const PJSUA2_THROW(Error) 139 144 { 140 145 return (int)op->readNumber(this, name); 141 146 } 142 147 143 float ContainerNode::readNumber(const string &name) const throw(Error)148 float ContainerNode::readNumber(const string &name) const PJSUA2_THROW(Error) 144 149 { 145 150 return op->readNumber(this, name); 146 151 } 147 152 148 bool ContainerNode::readBool(const string &name) const throw(Error)153 bool ContainerNode::readBool(const string &name) const PJSUA2_THROW(Error) 149 154 { 150 155 return op->readBool(this, name); 151 156 } 152 157 153 string ContainerNode::readString(const string &name) const throw(Error)158 string ContainerNode::readString(const string &name) const PJSUA2_THROW(Error) 154 159 { 155 160 return op->readString(this, name); … … 157 162 158 163 StringVector ContainerNode::readStringVector(const string &name) const 159 throw(Error)164 PJSUA2_THROW(Error) 160 165 { 161 166 return op->readStringVector(this, name); 162 167 } 163 168 164 void ContainerNode::readObject(PersistentObject &obj) const throw(Error) 169 void ContainerNode::readObject(PersistentObject &obj) const 170 PJSUA2_THROW(Error) 165 171 { 166 172 obj.readObject(*this); … … 168 174 169 175 ContainerNode ContainerNode::readContainer(const string &name) const 170 throw(Error)176 PJSUA2_THROW(Error) 171 177 { 172 178 return op->readContainer(this, name); … … 174 180 175 181 ContainerNode ContainerNode::readArray(const string &name) const 176 throw(Error)182 PJSUA2_THROW(Error) 177 183 { 178 184 return op->readArray(this, name); … … 180 186 181 187 void ContainerNode::writeNumber(const string &name, 182 float num) throw(Error)188 float num) PJSUA2_THROW(Error) 183 189 { 184 190 return op->writeNumber(this, name, num); … … 186 192 187 193 void ContainerNode::writeInt(const string &name, 188 int num) throw(Error)194 int num) PJSUA2_THROW(Error) 189 195 { 190 196 return op->writeNumber(this, name, (float)num); … … 192 198 193 199 void ContainerNode::writeBool(const string &name, 194 bool value) throw(Error)200 bool value) PJSUA2_THROW(Error) 195 201 { 196 202 return op->writeBool(this, name, value); … … 198 204 199 205 void ContainerNode::writeString(const string &name, 200 const string &value) throw(Error)206 const string &value) PJSUA2_THROW(Error) 201 207 { 202 208 return op->writeString(this, name, value); … … 205 211 void ContainerNode::writeStringVector(const string &name, 206 212 const StringVector &value) 207 throw(Error)213 PJSUA2_THROW(Error) 208 214 { 209 215 return op->writeStringVector(this, name, value); 210 216 } 211 217 212 void ContainerNode::writeObject(const PersistentObject &obj) throw(Error) 218 void ContainerNode::writeObject(const PersistentObject &obj) 219 PJSUA2_THROW(Error) 213 220 { 214 221 obj.writeObject(*this); … … 216 223 217 224 ContainerNode ContainerNode::writeNewContainer(const string &name) 218 throw(Error)225 PJSUA2_THROW(Error) 219 226 { 220 227 return op->writeNewContainer(this, name); … … 222 229 223 230 ContainerNode ContainerNode::writeNewArray(const string &name) 224 throw(Error)231 PJSUA2_THROW(Error) 225 232 { 226 233 return op->writeNewArray(this, name);
Note: See TracChangeset
for help on using the changeset viewer.