OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
niftest.cpp File Reference
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <components/nif/niffile.hpp>
#include <components/files/constrainedfilestream.hpp>
#include <components/vfs/manager.hpp>
#include <components/vfs/bsaarchive.hpp>
#include <components/vfs/filesystemarchive.hpp>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
Include dependency graph for niftest.cpp:

Functions

bool hasExtension (std::string filename, std::string extensionToFind)
 Program to test .nif files both on the FileSystem and in BSA archives. More...
 
bool isNIF (std::string filename)
 See if the file has the "nif" extension. More...
 
bool isBSA (std::string filename)
 See if the file has the "bsa" extension. More...
 
void readVFS (VFS::Archive *anArchive, std::string archivePath="")
 
std::vector< std::string > parseOptions (int argc, char **argv)
 
int main (int argc, char **argv)
 

Function Documentation

bool hasExtension ( std::string  filename,
std::string  extensionToFind 
)

Program to test .nif files both on the FileSystem and in BSA archives.

See if the file has the named extension

Here is the caller graph for this function:

bool isBSA ( std::string  filename)

See if the file has the "bsa" extension.

Here is the call graph for this function:

Here is the caller graph for this function:

bool isNIF ( std::string  filename)

See if the file has the "nif" extension.

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Here is the call graph for this function:

std::vector<std::string> parseOptions ( int  argc,
char **  argv 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void readVFS ( VFS::Archive anArchive,
std::string  archivePath = "" 
)

Check all the nif files in a given VFS::Archive

Note
Takes ownership!
Can not read a bsa file inside of a bsa file.

Here is the call graph for this function:

Here is the caller graph for this function: