+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
22 #include "hurricane/Name.h"
+
23 #include "hurricane/Property.h"
+
24 #include "hurricane/Slot.h"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
39 using Hurricane::_TName;
+
+
41 using Hurricane::Record;
+
+
+
+
+
+
+
+
49 extern const char* MissingStateProperty;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
69 string _getPrint ()
const;
+
70 inline string _getTypeName ()
const;
+
71 string _getString ()
const;
+
72 Record* _getRecord ()
const;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
95 inline bool isFeed ()
const;
+
96 inline bool isPad ()
const;
+
97 inline bool isGds ()
const;
+
+
+
+
101 inline bool isInMemory ()
const;
+
+
103 inline unsigned int getFlags (
unsigned int mask=(
unsigned int)-1 )
const;
+
104 inline bool setFlags (
unsigned int mask,
bool value );
+
+
106 inline bool setFeed (
bool value );
+
107 inline bool setPad (
bool value );
+
108 inline bool setGds (
bool value );
+
+
+
+
112 inline bool setInMemory (
bool value );
+
+
+
+
116 inline unsigned int getDepth ()
const;
+
+
+
+
+
121 inline void setDepth (
unsigned int depth );
+
+
123 void toJson ( JsonWriter* w )
const;
+
124 inline string _getTypeName ()
const;
+
125 string _getString ()
const;
+
126 Record* _getRecord ()
const;
+
+
+
+
+
+
+
+
+
+
+
+
+
139 static void initialize ();
+
140 JsonState (
unsigned long flags );
+
141 virtual string getTypeName ()
const;
+
142 virtual JsonState* clone (
unsigned long )
const;
+
+
+
+
+
+
+
149 map<Name,State*> _states;
+
+
+
+
153 static bool readLine (
const string& s,
string& name, State* state );
+
+
+
+
+
+
+
+
161 class CatalogProperty :
public PrivateProperty {
+
+
+
+
+
166 static CatalogProperty* create ( Catalog::State* state );
+
167 static Name getPropertyName ();
+
168 virtual Name getName ()
const;
+
169 inline Catalog::State* getState ()
const;
+
170 inline void setState ( Catalog::State* state );
+
171 virtual void onReleasedBy ( DBo* owner );
+
172 virtual bool hasJson ()
const;
+
173 virtual void toJson ( JsonWriter* w,
const DBo* )
const;
+
174 virtual string _getTypeName ()
const;
+
175 virtual string _getString ()
const;
+
176 virtual Record* _getRecord ()
const;
+
+
+
+
180 Catalog::State* _state;
+
+
+
+
184 inline CatalogProperty ( Catalog::State* state );
+
+
+
+
+
+
+
191 class JsonCatalogProperty :
public JsonObject {
+
+
193 static void initialize ();
+
194 JsonCatalogProperty (
unsigned long );
+
195 virtual string getTypeName ()
const;
+
196 virtual JsonCatalogProperty* clone (
unsigned long )
const;
+
197 virtual void toData ( JsonStack& );
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
212 inline bool Catalog::State::isInMemory ()
const {
return (_flags&InMemory )?1:0; }
+
+
+
215 if (value) { _flags |= mask; }
+
216 else { _flags &= ~mask; }
+
217 return ((_flags&mask) ?
true :
false);
+
+
+
+
+
+
+
+
+
226 inline bool Catalog::State::setInMemory (
bool value ) {
return setFlags(InMemory ,value); }
+
+
228 inline void Catalog::State::setDepth (
unsigned int depth ) { _depth = depth; }
+
+
+
+
232 inline string Catalog::State::_getTypeName ()
const {
return _TName(
"Catalog::State"); }
+
+
+
235 inline map<Name,Catalog::State*>*
+
+
237 inline string Catalog::_getTypeName ()
const {
return _TName(
"Catalog"); }
+
+
239 inline CatalogProperty::CatalogProperty ( Catalog::State* state ) : PrivateProperty(), _state(state) {}
+
240 inline Catalog::State* CatalogProperty::getState ()
const {
return _state; }
+
241 inline void CatalogProperty::setState ( Catalog::State* state ) { _state = state; }
+
+
+
+
+
+
+
+
+
+
+
+
+
254 static inline bool isPad (
const Cell* );
+
255 static inline bool isGds (
const Cell* );
+
+
+
+
+
260 static inline unsigned int getFlags (
const Cell*,
unsigned int mask=(
unsigned int)-1 );
+
261 static inline bool setFlags (
const Cell*,
unsigned int mask,
bool value );
+
+
263 static inline bool setFeed (
const Cell*,
bool value );
+
264 static inline bool setPad (
const Cell*,
bool value );
+
265 static inline bool setGds (
const Cell*,
bool value );
+
+
+
+
+
+
+
+
+
274 static inline void setDepth (
const Cell*,
unsigned int depth );
+
+
276 static const Cell* _owner;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
291 return (state == NULL) ?
false : state->
isFeed();
+
+
+
+
+
+
+
298 return (state == NULL) ?
false : state->
isGds();
+
+
+
+
+
+
+
305 return (state == NULL) ?
false : state->
isPad();
+
+
+
+
+
+
+
312 return (state == NULL) ?
false : state->
isDelete();
+
+
+
+
+
+
+
319 return (state == NULL) ?
false : state->
isPhysical();
+
+
+
+
+
+
+
326 return (state == NULL) ?
false : state->
isLogical();
+
+
+
+
+
+
+
333 return (state == NULL) ? 0 : state->
getFlags();
+
+
+
+
+
+
+
340 return (state == NULL) ?
false : state->
setFlags(mask,value);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
354 return (state == NULL) ?
false : state->
setFeed(value);
+
+
+
+
+
+
+
361 return (state == NULL) ?
false : state->
setPad(value);
+
+
+
+
+
+
+
368 return (state == NULL) ?
false : state->
setGds(value);
+
+
+
+
+
+
+
375 return (state == NULL) ?
false : state->
setDelete(value);
+
+
+
+
+
+
+
382 return (state == NULL) ?
false : state->
setPhysical(value);
+
+
+
+
+
+
+
389 return (state == NULL) ?
false : state->
setLogical(value);
+
+
+
+
+
+
+
396 return (state == NULL) ? NULL : state->
getLibrary();
+
+
+
+
+
+
+
403 return (state == NULL) ? 0 : state->
getDepth();
+
+
+
+
+
+
+
410 return (state == NULL) ? NULL : state->
setLibrary(library);
+
+
+
+
414 inline void CatalogExtension::setDepth (
const Cell* cell,
unsigned int depth )
+
+
+
417 if ( state == NULL ) state->setDepth(depth);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
431 inline std::string getPrint (
const CRL::Catalog &CATAL ) {
return CATAL._getPrint(); }
+
+
+
+
+
+
437 #endif // CRL_CATALOG_H
+
static bool setPad(const Cell *, bool value)
Definition: Catalog.h:358
An entry to store the Cell State in the Catalog.
Definition: Catalog.h:76
@@ -51,67 +494,76 @@ $(function() {
static bool setLogical(const Cell *, bool value)
Definition: Catalog.h:386
+
bool setPad(bool value)
Definition: Catalog.h:221
+
Cell * getCell() const
Definition: Catalog.h:229
static bool isGds(const Cell *)
Definition: Catalog.h:295
bool setGds(bool value)
Definition: Catalog.h:222
+
Cell * setCell(Cell *cell)
Catalog()
Definition: Catalog.h:234
+
bool isFlattenLeaf() const
Definition: Catalog.h:205
static bool isDelete(const Cell *)
Definition: Catalog.h:309
+
bool isFeed() const
Definition: Catalog.h:206
static bool isLogical(const Cell *)
Definition: Catalog.h:323
static bool setFeed(const Cell *, bool value)
Definition: Catalog.h:351
static bool setFlattenLeaf(const Cell *, bool value)
Definition: Catalog.h:344
-
bool isLogical() const
Definition: Catalog.h:211
+
void merge(const State &other)
+
bool isPad() const
Definition: Catalog.h:207
+
unsigned int getDepth() const
Definition: Catalog.h:231
+
bool isDelete() const
Definition: Catalog.h:209
+
bool isLogical() const
Definition: Catalog.h:211
-
bool isPhysical() const
Definition: Catalog.h:210
-
bool isDelete() const
Definition: Catalog.h:209
-
static unsigned int getFlags(const Cell *, unsigned int mask=(unsigned int) -1)
Definition: Catalog.h:330
Library * setLibrary(Library *library)
Definition: Catalog.h:227
+
bool setLogical(bool value)
Definition: Catalog.h:225
static bool setGds(const Cell *, bool value)
Definition: Catalog.h:365
+
bool deleteState(const Name &name)
+
void mergeState(const Name &name, const State &other)
bool setFeed(bool value)
Definition: Catalog.h:220
-
Library * getLibrary() const
Definition: Catalog.h:230
+
-
Cell * getCell() const
Definition: Catalog.h:229
bool setFlags(unsigned int mask, bool value)
Definition: Catalog.h:214
map< Name, State * > * getStates()
Definition: Catalog.h:236
static bool isFeed(const Cell *)
Definition: Catalog.h:288
+
bool isGds() const
Definition: Catalog.h:208
static Library * getLibrary(const Cell *)
Definition: Catalog.h:393
+
static unsigned int getFlags(const Cell *, unsigned int mask=(unsigned int)-1)
Definition: Catalog.h:330
+
State * getState(const Name &name, bool add=false)
+
State()
Definition: Catalog.h:204
+
Library * getLibrary() const
Definition: Catalog.h:230
bool setFlattenLeaf(bool value)
Definition: Catalog.h:219
static bool isPad(const Cell *)
Definition: Catalog.h:302
-
bool isFeed() const
Definition: Catalog.h:206
+
bool loadFromFile(const string &path, Library *library)
bool setDelete(bool value)
Definition: Catalog.h:223
static Library * setLibrary(const Cell *, Library *library)
Definition: Catalog.h:407
static bool setPhysical(const Cell *, bool value)
Definition: Catalog.h:379
-
-
bool isPad() const
Definition: Catalog.h:207
-
bool isFlattenLeaf() const
Definition: Catalog.h:205
+
unsigned int getFlags(unsigned int mask=(unsigned int)-1) const
Definition: Catalog.h:213
A Registry to store Alliance Cell metadatas.
Definition: Catalog.h:56
+
bool isPhysical() const
Definition: Catalog.h:210
static bool setDelete(const Cell *, bool value)
Definition: Catalog.h:372
Wrapper to access a Hurricane::Cell Catalog::State.
Definition: Catalog.h:248
bool setPhysical(bool value)
Definition: Catalog.h:224
-
bool isGds() const
Definition: Catalog.h:208
static bool isPhysical(const Cell *)
Definition: Catalog.h:316
static unsigned int getDepth(const Cell *)
Definition: Catalog.h:400
Flags
Definition: Catalog.h:79
static bool isFlattenLeaf(const Cell *)
Definition: Catalog.h:281
-
The namespace of Coriolis Core.
Definition: Environment.h:26
-
unsigned int getDepth() const
Definition: Catalog.h:231
static bool setFlags(const Cell *, unsigned int mask, bool value)
Definition: Catalog.h:337