author | Tom Henderson <tomh@tomh.org> |
Sun, 14 Aug 2011 14:06:45 -0700 | |
changeset 7428 | 6cf8d863adec |
parent 7423 | 4655567a1cb2 |
child 8254 | 221fd655f652 |
permissions | -rw-r--r-- |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
2 |
/* |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
3 |
* This program is free software; you can redistribute it and/or modify |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
4 |
* it under the terms of the GNU General Public License version 2 as |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
5 |
* published by the Free Software Foundation; |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
6 |
* |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
7 |
* This program is distributed in the hope that it will be useful, |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
8 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
9 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
10 |
* GNU General Public License for more details. |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
11 |
* |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
12 |
* You should have received a copy of the GNU General Public License |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
13 |
* along with this program; if not, write to the Free Software |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
14 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
15 |
* |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
16 |
* Authors: Faker Moatamri <faker.moatamri@sophia.inria.fr> |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
17 |
* Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
18 |
*/ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
19 |
|
4273
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
20 |
#include "attribute-default-iterator.h" |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
21 |
#include "ns3/attribute.h" |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
22 |
#include "ns3/pointer.h" |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
23 |
#include "ns3/global-value.h" |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
24 |
#include "ns3/string.h" |
7423
4655567a1cb2
remove object vector usage to allow object map to work with config store
Mathieu Lacage <mathieu.lacage@inria.fr>
parents:
7393
diff
changeset
|
25 |
#include "ns3/object-ptr-container.h" |
4273
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
26 |
|
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
27 |
namespace ns3 |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
28 |
{ |
4273
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
29 |
|
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
30 |
AttributeDefaultIterator::~AttributeDefaultIterator () |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
31 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
32 |
} |
4273
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
33 |
void |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
34 |
AttributeDefaultIterator::Iterate (void) |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
35 |
{ |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
36 |
for (uint32_t i = 0; i < TypeId::GetRegisteredN (); i++) |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
37 |
{ |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
38 |
TypeId tid = TypeId::GetRegistered (i); |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
39 |
if (tid.MustHideFromDocumentation ()) |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
40 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
41 |
continue; |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
42 |
} |
4273
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
43 |
bool calledStart = false; |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
44 |
for (uint32_t j = 0; j < tid.GetAttributeN (); j++) |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
45 |
{ |
7393
8c3dfe0be54d
use new API. kill old one.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
6941
diff
changeset
|
46 |
struct TypeId::AttributeInformation info = tid.GetAttribute (j); |
8c3dfe0be54d
use new API. kill old one.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
6941
diff
changeset
|
47 |
if (!(info.flags & TypeId::ATTR_CONSTRUCT)) |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
48 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
49 |
// we can't construct the attribute, so, there is no |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
50 |
// initial value for the attribute |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
51 |
continue; |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
52 |
} |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
53 |
//No accessor, go to next attribute |
7393
8c3dfe0be54d
use new API. kill old one.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
6941
diff
changeset
|
54 |
if (info.accessor == 0) |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
55 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
56 |
continue; |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
57 |
} |
7393
8c3dfe0be54d
use new API. kill old one.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
6941
diff
changeset
|
58 |
if (!info.accessor->HasSetter ()) |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
59 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
60 |
//skip this attribute it doesn't have an setter |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
61 |
continue; |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
62 |
} |
7393
8c3dfe0be54d
use new API. kill old one.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
6941
diff
changeset
|
63 |
if (info.checker == 0) |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
64 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
65 |
//skip, it doesn't have a checker |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
66 |
continue; |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
67 |
} |
7393
8c3dfe0be54d
use new API. kill old one.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
6941
diff
changeset
|
68 |
if (info.initialValue == 0) |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
69 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
70 |
//No value, check next attribute |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
71 |
continue; |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
72 |
} |
7423
4655567a1cb2
remove object vector usage to allow object map to work with config store
Mathieu Lacage <mathieu.lacage@inria.fr>
parents:
7393
diff
changeset
|
73 |
Ptr<const ObjectPtrContainerValue> vector = DynamicCast<const ObjectPtrContainerValue> (info.initialValue); |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
74 |
if (vector != 0) |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
75 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
76 |
//a vector value, won't take it |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
77 |
continue; |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
78 |
} |
7393
8c3dfe0be54d
use new API. kill old one.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
6941
diff
changeset
|
79 |
Ptr<const PointerValue> pointer = DynamicCast<const PointerValue> (info.initialValue); |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
80 |
if (pointer != 0) |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
81 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
82 |
//pointer value, won't take it |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
83 |
continue; |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
84 |
} |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
85 |
//We take only values, no pointers or vectors |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
86 |
if (!calledStart) |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
87 |
{ |
7428
6cf8d863adec
bug 845: fix ConfigStore output
Tom Henderson <tomh@tomh.org>
parents:
7423
diff
changeset
|
88 |
StartVisitTypeId (tid.GetName ()); |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
89 |
} |
7393
8c3dfe0be54d
use new API. kill old one.
Mathieu Lacage <mathieu.lacage@gmail.com>
parents:
6941
diff
changeset
|
90 |
VisitAttribute (tid, info.name, info.initialValue->SerializeToString (info.checker), j); |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
91 |
calledStart = true; |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
92 |
} |
4273
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
93 |
if (calledStart) |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
94 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
95 |
EndVisitTypeId (); |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
96 |
} |
4273
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
97 |
} |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
98 |
} |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
99 |
|
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
100 |
void |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
101 |
AttributeDefaultIterator::StartVisitTypeId (std::string name) |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
102 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
103 |
} |
4273
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
104 |
void |
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
105 |
AttributeDefaultIterator::EndVisitTypeId (void) |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
106 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
107 |
} |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
108 |
|
4273
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
109 |
void |
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
110 |
AttributeDefaultIterator::DoVisitAttribute (std::string name, std::string defaultValue) |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
111 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
112 |
} |
4273
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
113 |
|
5992
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
114 |
void |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
115 |
AttributeDefaultIterator::VisitAttribute (TypeId tid, std::string name, std::string defaultValue, uint32_t index) |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
116 |
{ |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
117 |
DoVisitAttribute (name, defaultValue); |
73ea01eb5674
Bug 184: add ConfigureDefaults to GtkConfigStore, refactor the code and coding style, add comments
Faker Moatamri <faker.moatamri@sophia.inria.fr>
parents:
4273
diff
changeset
|
118 |
} |
4273
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
119 |
|
fb4423206618
xml support for ConfigStore
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff
changeset
|
120 |
} // namespace ns3 |