13 #include "filexml.inc"
15 #include "pluginserver.inc"
16 #include "sharedlocation.h"
24 // expose some lists interface with inline functions
25 Assets_list::size_type
size()
26 { return assets
.size();}
27 Assets_list::iterator
begin()
28 { return assets
.begin();}
29 Assets_list::iterator
end()
30 { return assets
.end();}
31 Assets_list::const_iterator
begin() const
32 { return assets
.begin();}
33 Assets_list::const_iterator
end() const
34 { return assets
.end();}
39 int load(ArrayList
<PluginServer
*> *plugindb
,
42 int save(ArrayList
<PluginServer
*> *plugindb
,
45 Assets
& operator=(const Assets
&assets
);
46 void copy_from(const Assets
&assets
);
48 // Enter a new asset into the table.
49 // If the asset already exists return the asset which exists.
50 // If the asset doesn't exist, store a copy of the argument and return the copy.
51 Asset_GC
update(Asset_GC asset
);
52 // Update the index information for assets with the same path
53 void update_index(Asset
&asset
);
63 // return the asset containing this path or create a new asset containing this path
64 Asset_GC
update(const char *path
);
66 // Insert the asset into the list if it doesn't exist already but
67 // don't create a new asset.
68 void update_ptr(Asset_GC asset
);
70 // return the asset containing this path or 0 if not found
71 Asset_GC
get_asset(const char *filename
);
72 // remove asset from table
73 void remove_asset(Asset_GC asset
);
75 // return number of the asset
76 int number_of(Asset_GC asset
);
77 Asset_GC
asset_number(int number
);
79 int update_old_filename(char *old_filename
, char *new_filename
);
89 // c-file-style: "linux"